Skip to content

refactor: replace deprecated functions and improve internal typing - #1508

Open
JanneSaukkio wants to merge 5 commits into
manfredsteyer:masterfrom
JanneSaukkio:typescript-cleanup
Open

refactor: replace deprecated functions and improve internal typing #1508
JanneSaukkio wants to merge 5 commits into
manfredsteyer:masterfrom
JanneSaukkio:typescript-cleanup

Conversation

@JanneSaukkio

Copy link
Copy Markdown

I tried to only make improvements to internal variables and methods while avoiding making changes to the user-facing API. Apart from small fix in MemoryStorage.getItem and replacement of deprecated methods, no changes have been made to the production code.

The amount of TypeScript errors in "strict mode" is reduced by 17% across the whole repository. The strict mode became default in TS6. Below are result of running npm run tsc -- --noEmit --strict against master branch and this PR.

# Before (master)
Found 318 errors in 32 files.

# After (this PR)
Found 264 errors in 28 files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant