Some useful TypeScript types.
English | 简体中文
npm i @meojs/typesAll type definitions can be used by adding the corresponding path to the compilerOptions.types field array in your project's tsconfig.json file:
Although the official provides the type package @cocos/creator-types, there are the following issues:
- Not updated in a timely manner.
- Missing
cc/envtype file.
Import path list:
- v3.8.5
@meojs/types/cocos-creator/3.8.5/editor@meojs/types/cocos-creator/3.8.5/engine
- Run
npm run publish:versionto push a new version.
{ "compilerOptions": { "types": [ "@meojs/types/xxx", ] } }