@xenon.types/cocos-creator
v3.8.0
Published
TypeScript declaration files extracted from Cocos Creator engine.
Downloads
220
Maintainers
Readme
Read this in other languages: English | 简体中文
Introduction
Including runtime and editor type declarations.
Usage
- Install npm package:
npm install @xenon.types/cocos-creator
Unless 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/[email protected]
- Add the path of
@xenon.types
to thetypeRoots
field ofcompilerOptions
intsconfig.json
so 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.