Open ytxmobile98 opened 1 year ago
My company is looking for integrating WinterCG common minimum API into TypeScript config, in order to provide type checking, error highlighting, autocomplete, etc.
Developers may be able to write something like this in tsconfig.json:
{ "extends": "@tsconfig/wintercg/tsconfig.json" }
This tsconfig should at least support the common minimum APIs which are listed in https://blog.cloudflare.com/introducing-the-wintercg/ and https://common-min-api.proposal.wintercg.org/.
Install the wintercg tsconfig:
npm install --save-dev @tsconfig/wintercg yarn add --dev @tsconfig/wintercg
lib
Provide WinterCG common minimum API access in the lib configuration. For example: lib can be set to WinterCG.
WinterCG
My company is looking for integrating WinterCG common minimum API into TypeScript config, in order to provide type checking, error highlighting, autocomplete, etc.
1. TypeScript base config
Developers may be able to write something like this in tsconfig.json:
This tsconfig should at least support the common minimum APIs which are listed in https://blog.cloudflare.com/introducing-the-wintercg/ and https://common-min-api.proposal.wintercg.org/.
Install the wintercg tsconfig:
2.
lib
Provide WinterCG common minimum API access in the
lib
configuration. For example:lib
can be set toWinterCG
.