3.8.0 • Published 6 months ago

@xenon.types/cocos-creator v3.8.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Read this in other languages: English | 简体中文

Introduction

Including runtime and editor type declarations.

Usage

  1. 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/cocos-creator@3.8.0
  1. Add the path of @xenon.types to the typeRoots field of compilerOptions in tsconfig.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.

License

MIT @ SmallMain