nervosnetwork / polyjuice-provider

Godwoken-Polyjuice compatible providers for ethereum library
https://www.npmjs.com/org/polyjuice-provider
8 stars 13 forks source link

fix: make godwoken package strict tsconfig compatible #65

Closed e00dan closed 2 years ago

e00dan commented 2 years ago

Changes:

  1. Move typescript package to global package.json and remove it from individual package.json to avoid repetition
  2. Fix @polyjuice-provider/godwoken compatibility with TypeScript 4.4 when "strict" in tsconfig.json is set to true
  3. Use ES2019 for @polyjuice-provider/godwoken compatibility with Create React App

Fixed problem: image

Literature:

  1. https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-4.html#defaulting-to-the-unknown-type-in-catch-variables---useunknownincatchvariables
  2. https://www.typescriptlang.org/tsconfig#useUnknownInCatchVariables (default to true when strict true)

Please review @RetricSu