File tree Expand file tree Collapse file tree 4 files changed +37
-39
lines changed Expand file tree Collapse file tree 4 files changed +37
-39
lines changed Original file line number Diff line number Diff line change
1
+ // based on src/index.js
2
+ type StyleObject = {
3
+ [ key : string ] : unknown ;
4
+ } ;
5
+
6
+ type UniqueSpace = symbol | string ;
7
+
8
+ type Computed = ( dependencies : Array < any > ) => StyleObject ;
9
+
10
+ type TagStyles = ( strings : string [ ] , expressions : string [ ] ) => StyleObject ;
11
+
12
+ type UseStyles = {
13
+ ( ) : ( dependencies : Array < any > ) => TagStyles ;
14
+ namespace : UniqueSpace ;
15
+ } ;
16
+
17
+ export function useGlobalStyles (
18
+ namespace : UniqueSpace ,
19
+ dependencies : Array < any > ,
20
+ ) : TagStyles ;
21
+
22
+ export function GlobalUse ( rawStyle : string , namespace : UniqueSpace ) : Computed ;
23
+
24
+ export function GlobalStyles ( definition : StyleObject , namespace : UniqueSpace ) : void ;
25
+
26
+ export function Styles (
27
+ definition : StyleObject ,
28
+ namespace : UniqueSpace ,
29
+ ) : UseStyles ;
30
+
31
+ export function getConstant ( name : string , namespace : UseStyles | UniqueSpace ) : any ;
32
+
33
+ export function setSeparator ( newSeparator : string ) : void ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-use-styles" ,
3
- "version" : " 1.3.2 " ,
3
+ "version" : " 1.3.5 " ,
4
4
"description" : " React Native useStyles" ,
5
5
"main" : " index.js" ,
6
6
"module" : " src/index.js" ,
7
- "types" : " types .d.ts" ,
7
+ "types" : " index .d.ts" ,
8
8
"files" : [
9
9
" cjs" ,
10
10
" README.md" ,
11
11
" LICENSE.md" ,
12
12
" USER_GUIDE.md" ,
13
13
" index.js" ,
14
- " types .d.ts"
14
+ " index .d.ts"
15
15
],
16
16
"scripts" : {
17
17
"test" : " jest --verbose" ,
Original file line number Diff line number Diff line change 12
12
"alwaysStrict" : true ,
13
13
"esModuleInterop" : true
14
14
},
15
- "include" : [" src/**/*.d.ts" , " types .d.ts" ]
15
+ "include" : [" src/**/*.d.ts" , " index .d.ts" ]
16
16
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments