File tree Expand file tree Collapse file tree 8 files changed +26
-16
lines changed Expand file tree Collapse file tree 8 files changed +26
-16
lines changed Original file line number Diff line number Diff line change 4
4
],
5
5
"compilerOptions" : {
6
6
"noFallthroughCasesInSwitch" : true ,
7
+ "noImplicitAny" : true ,
7
8
"noImplicitOverride" : true ,
8
9
"noImplicitReturns" : true ,
10
+ "noImplicitThis" : true ,
9
11
"noPropertyAccessFromIndexSignature" : true ,
10
12
"noUnusedLocals" : true ,
11
13
"noUnusedParameters" : true ,
12
14
"strict" : true ,
13
- "moduleResolution" : " node" ,
15
+ "module" : " CommonJS" ,
16
+ "moduleResolution" : " Node" ,
14
17
"resolveJsonModule" : true ,
15
- "strictNullChecks" : true ,
18
+ "declaration" : true ,
19
+ "declarationMap" : true ,
20
+ "sourceMap" : true ,
16
21
"allowJs" : true ,
17
22
"checkJs" : true ,
18
- "allowSyntheticDefaultImports " : true ,
23
+ "esModuleInterop " : true ,
19
24
"forceConsistentCasingInFileNames" : true ,
25
+ "isolatedModules" : true ,
20
26
"jsx" : " react" ,
21
27
"target" : " ESNext" ,
22
- "skipLibCheck" : true
28
+ "pretty" : true ,
29
+ "skipLibCheck" : true ,
30
+ "skipDefaultLibCheck" : true
23
31
}
24
32
}
Original file line number Diff line number Diff line change 34
34
"@types/jest" : " 29.5.4" ,
35
35
"eslint" : " ^8.54.0" ,
36
36
"jest" : " 29.5.0" ,
37
+ "prettier" : " ^2.8.8" ,
37
38
"react-native-builder-bob" : " 0.20.0" ,
38
39
"ts-jest" : " 29.1.1" ,
39
40
"typescript" : " ^5.3.0"
Original file line number Diff line number Diff line change 1
- export { AsyncStorage } from "./AsyncStorage" ;
1
+ export type { AsyncStorage } from "./AsyncStorage" ;
2
2
export type { StorageExtension } from "./StorageExtension" ;
3
3
export type { StorageKeys , StorageModel } from "./StorageModel" ;
Original file line number Diff line number Diff line change 1
1
{
2
- "extends" : " ../../.config/tsconfig.base.json" ,
3
- "include " : [ " ./src/**/* " , " ./example/**/* " ],
4
- "compilerOptions " : {
5
- "types" : [ " jest " ]
6
- }
2
+ "extends" : " ../../.config/tsconfig.base.json" ,
3
+ "compilerOptions " : {
4
+ "types " : [ " jest " ]
5
+ },
6
+ "include" : [ " example " , " src " ]
7
7
}
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export function convertError(error?: ErrorLike): Error | null {
53
53
return null ;
54
54
}
55
55
56
- const out = new Error ( error . message ) ;
56
+ const out = new Error ( error . message ) as Error & ErrorLike ;
57
57
out [ "key" ] = error . key ;
58
58
return out ;
59
59
}
Original file line number Diff line number Diff line change 1
1
export type ErrorLike = {
2
2
message : string ;
3
- key : string ;
3
+ key ? : string ;
4
4
} ;
5
5
6
6
export type Callback = ( error ?: Error | null ) => void ;
Original file line number Diff line number Diff line change 3
3
"compilerOptions" : {
4
4
"noEmit" : true ,
5
5
"types" : [
6
- " node" ,
7
- " mocha" ,
8
6
" @wdio/globals/types" ,
9
7
" @wdio/mocha-framework" ,
10
- " expect-webdriverio"
8
+ " expect-webdriverio" ,
9
+ " mocha" ,
10
+ " node"
11
11
]
12
12
},
13
- "include" : [" example/**/*.ts" , " example/**/*.tsx" ]
13
+ "include" : [" example/**/*.ts" , " example/**/*.tsx" , " src " ]
14
14
}
Original file line number Diff line number Diff line change @@ -4159,6 +4159,7 @@ __metadata:
4159
4159
"@types/jest": 29.5.4
4160
4160
eslint: ^8.54.0
4161
4161
jest: 29.5.0
4162
+ prettier: ^2.8.8
4162
4163
react-native-builder-bob: 0.20.0
4163
4164
ts-jest: 29.1.1
4164
4165
typescript: ^5.3.0
You can’t perform that action at this time.
0 commit comments