3.8.0 • Published 2 years ago
@xenon.types/cocos-creator v3.8.0
Read this in other languages: English | 简体中文
Introduction
Including runtime and editor type declarations.
Usage
- Install npm package:
npm install @xenon.types/cocos-creatorUnless otherwise specified, the version number of the package corresponds to the engine version.
For example, if you want to install the type package corresponding to Cocos Creator v3.8.0, you can:
npm install @xenon.types/cocos-creator@3.8.0- Add the path of
@xenon.typesto thetypeRootsfield ofcompilerOptionsintsconfig.jsonso that TypeScript can find the type declaration file:
"typeRoots": [
"./node_modules/@types",
"./node_modules/@xenon.types",
],Contributing
To get started contributing to the project, see the Contributing Guide.
License
3.8.0
2 years ago