Skip to content

Commit

Permalink
migrate files to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
wolverineks committed Oct 15, 2021
1 parent f8747e4 commit 7f8bec4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .husky/pre-commit
Expand Up @@ -3,3 +3,4 @@

npx lint-staged
yarn flow
yarn tsc
File renamed without changes.
2 changes: 2 additions & 0 deletions src/index.js → src/index.tsx
Expand Up @@ -29,10 +29,12 @@ bluebird.config({
https://github.com/facebook/react-native/issues/19490
https://github.com/facebook/react-native/issues/17972
*/
// @ts-ignore
global.Promise = bluebird

const cache = createIntlCache()
const intl = createIntl({locale: 'en-US', messages: translations['en-US']}, cache)
// @ts-ignore
global.onunhandledrejection = (e) => handleGeneralError(e.message, e, intl)

const AppWithProviders = () => {
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Expand Up @@ -11,7 +11,9 @@
"strict": true,
"noImplicitAny": false,
"target": "esnext",
"types": ["react", "react-native", "react-redux", "jest"]
"types": ["react", "react-native", "react-redux", "jest"],
"resolveJsonModule": true,
"skipLibCheck": true
},
"exclude": ["node_modules", "babel.config.js", "metro.config.js", "jest.config.js"]
}

0 comments on commit 7f8bec4

Please sign in to comment.