-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable typescript strict mode (#741)
* use tuple to replace overload * use es6 default value to replace object.assign * improve onErrorRetry types * enable strict mode and fix use-swr-infinite * type global state manager * safely fix ts error using @ts-ignore and any * fix test * fix eslint and window.requestIdleCallback type * keep same order * more strict config callback fn type * fix fetcherFn type * keep the exact same behavior Co-authored-by: Shu Ding <[email protected]>
- Loading branch information
Showing
8 changed files
with
144 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
module.exports = { | ||
preset: 'ts-jest', | ||
testRegex: '/test/.*\\.test\\.tsx$', | ||
}; | ||
globals: { | ||
'ts-jest': { | ||
diagnostics: { | ||
warnOnly: true | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.