-
Notifications
You must be signed in to change notification settings - Fork 31
/
styled.d.ts
33 lines (25 loc) · 888 Bytes
/
styled.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import type {DoobooTheme, DoobooTheme as DoobooUiTheme} from '@dooboo-ui/theme';
import type {CSSObject} from '@emotion/react';
declare module '@emotion/react' {
export interface Theme extends DoobooTheme {}
}
import type {StyleProp, ViewStyle} from 'react-native';
import type {CustomAppTheme} from './theme';
type AllTheme = CustomAppTheme & DoobooUiTheme;
declare module '@emotion/react' {
export interface Theme extends AllTheme {}
}
declare module '@emotion/native' {
// Overload for ViewStyle
export function css(
...args: Array<CSSObject | StyleProp<ViewStyle>>
): ReturnType<typeof css>;
// Overload for TextStyle
export function css(
...args: Array<CSSObject | StyleProp<TextStyle>>
): ReturnType<typeof css>;
// Overload for ImageStyle
export function css(
...args: Array<CSSObject | StyleProp<ImageStyle>>
): ReturnType<typeof css>;
}