REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.55 KB
Close
/home/byroehnu/.trash/node_modules11/styled-components/dist/models/ThemeProvider.d.ts
Text
Base64
import React from 'react'; type DefaultThemeAsObject<T = object> = Record<keyof T, any>; /** * Override DefaultTheme to get accurate typings for your project. * * ``` * // create styled-components.d.ts in your project source * // if it isn't being picked up, check tsconfig compilerOptions.types * import type { CSSProp } from "styled-components"; * import Theme from './theme'; * * type ThemeType = typeof Theme; * * declare module "styled-components" { * export interface DefaultTheme extends ThemeType {} * } * * declare module "react" { * interface DOMAttributes<T> { * css?: CSSProp; * } * } * ``` */ export interface DefaultTheme extends DefaultThemeAsObject { } type ThemeFn = (outerTheme?: DefaultTheme | undefined) => DefaultTheme; type ThemeArgument = DefaultTheme | ThemeFn; type Props = { children?: React.ReactNode; theme: ThemeArgument; }; export declare const ThemeContext: React.Context<DefaultTheme | undefined>; export declare const ThemeConsumer: React.Consumer<DefaultTheme | undefined>; /** * Returns the current theme (as provided by the closest ancestor `ThemeProvider`.) * * If no `ThemeProvider` is found, the function will error. If you need access to the theme in an * uncertain composition scenario, `React.useContext(ThemeContext)` will not emit an error if there * is no `ThemeProvider` ancestor. */ export declare function useTheme(): DefaultTheme; /** * Provide a theme to an entire react component tree via context */ export default function ThemeProvider(props: Props): React.JSX.Element | null; export {};
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 9
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
ComponentStyle.d.ts
667 B
lrw-r--r--
2026-02-28 11:42:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
GlobalStyle.d.ts
625 B
lrw-r--r--
2026-02-28 11:42:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
InlineStyle.d.ts
363 B
lrw-r--r--
2026-02-28 11:43:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Keyframes.d.ts
389 B
lrw-r--r--
2026-02-28 11:43:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ServerStyleSheet.d.ts
515 B
lrw-r--r--
2026-02-28 11:43:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
StyledComponent.d.ts
440 B
lrw-r--r--
2026-02-28 11:43:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
StyledNativeComponent.d.ts
515 B
lrw-r--r--
2026-02-28 11:43:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
StyleSheetManager.d.ts
2.95 KB
lrw-r--r--
2026-02-28 11:43:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ThemeProvider.d.ts
1.55 KB
lrw-r--r--
2026-02-28 11:43:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).