themeIsValid() — supabase Function Reference
Architecture documentation for the themeIsValid() function in types.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 29fe6874_9fd6_0383_b38f_8a2ce5779097["themeIsValid()"] e2d3eba8_76c5_f344_265b_478004793260["ThemeProvider()"] e2d3eba8_76c5_f344_265b_478004793260 -->|calls| 29fe6874_9fd6_0383_b38f_8a2ce5779097 style 29fe6874_9fd6_0383_b38f_8a2ce5779097 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/cms/src/providers/Theme/types.ts lines 8–10
export function themeIsValid(string: null | string): string is Theme {
return string ? ['dark', 'light'].includes(string) : false
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does themeIsValid() do?
themeIsValid() is a function in the supabase codebase.
What calls themeIsValid()?
themeIsValid() is called by 1 function(s): ThemeProvider.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free