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 44 ],
55 "compilerOptions" : {
66 "noFallthroughCasesInSwitch" : true ,
7+ "noImplicitAny" : true ,
78 "noImplicitOverride" : true ,
89 "noImplicitReturns" : true ,
10+ "noImplicitThis" : true ,
911 "noPropertyAccessFromIndexSignature" : true ,
1012 "noUnusedLocals" : true ,
1113 "noUnusedParameters" : true ,
1214 "strict" : true ,
13- "moduleResolution" : " node" ,
15+ "module" : " CommonJS" ,
16+ "moduleResolution" : " Node" ,
1417 "resolveJsonModule" : true ,
15- "strictNullChecks" : true ,
18+ "declaration" : true ,
19+ "declarationMap" : true ,
20+ "sourceMap" : true ,
1621 "allowJs" : true ,
1722 "checkJs" : true ,
18- "allowSyntheticDefaultImports " : true ,
23+ "esModuleInterop " : true ,
1924 "forceConsistentCasingInFileNames" : true ,
25+ "isolatedModules" : true ,
2026 "jsx" : " react" ,
2127 "target" : " ESNext" ,
22- "skipLibCheck" : true
28+ "pretty" : true ,
29+ "skipLibCheck" : true ,
30+ "skipDefaultLibCheck" : true
2331 }
2432}
Original file line number Diff line number Diff line change 3434 "@types/jest" : " 29.5.4" ,
3535 "eslint" : " ^8.54.0" ,
3636 "jest" : " 29.5.0" ,
37+ "prettier" : " ^2.8.8" ,
3738 "react-native-builder-bob" : " 0.20.0" ,
3839 "ts-jest" : " 29.1.1" ,
3940 "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" ;
22export type { StorageExtension } from "./StorageExtension" ;
33export type { StorageKeys , StorageModel } from "./StorageModel" ;
Original file line number Diff line number Diff line change 11{
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 " ]
77}
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export function convertError(error?: ErrorLike): Error | null {
5353 return null ;
5454 }
5555
56- const out = new Error ( error . message ) ;
56+ const out = new Error ( error . message ) as Error & ErrorLike ;
5757 out [ "key" ] = error . key ;
5858 return out ;
5959}
Original file line number Diff line number Diff line change 11export type ErrorLike = {
22 message : string ;
3- key : string ;
3+ key ? : string ;
44} ;
55
66export type Callback = ( error ?: Error | null ) => void ;
Original file line number Diff line number Diff line change 33 "compilerOptions" : {
44 "noEmit" : true ,
55 "types" : [
6- " node" ,
7- " mocha" ,
86 " @wdio/globals/types" ,
97 " @wdio/mocha-framework" ,
10- " expect-webdriverio"
8+ " expect-webdriverio" ,
9+ " mocha" ,
10+ " node"
1111 ]
1212 },
13- "include" : [" example/**/*.ts" , " example/**/*.tsx" ]
13+ "include" : [" example/**/*.ts" , " example/**/*.tsx" , " src " ]
1414}
Original file line number Diff line number Diff line change @@ -4159,6 +4159,7 @@ __metadata:
41594159 "@types/jest": 29.5.4
41604160 eslint: ^8.54.0
41614161 jest: 29.5.0
4162+ prettier: ^2.8.8
41624163 react-native-builder-bob: 0.20.0
41634164 ts-jest: 29.1.1
41644165 typescript: ^5.3.0
You can’t perform that action at this time.
0 commit comments