RPGツクールMV のコアスクリプトを TypeScript で扱うための型定義ファイルです。
1.6.1コミュニティ版1.3b
npm install https://gitpkg.now.sh/Lunatlazur/rpgmaker/packages/@types/rpgmakermv-types
or
yarn add --dev https://gitpkg.now.sh/Lunatlazur/rpgmaker/packages/@types/rpgmakermv-types
or
pnpm add -D https://gitpkg.now.sh/Lunatlazur/rpgmaker/packages/@types/rpgmakermv-types
tsconfig.json
RPGツクールMV
{
"compilerOptions": {
"target": "es2018",
"module": "commonjs",
"baseUrl": "src",
"outDir": "build",
"inlineSourceMap": false,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitThis": true,
"removeComments": false,
"esModuleInterop": true,
"lib": [
"es2018",
]
},
"types": [
"@lunatlazur/rpgmakermv-types"
]
}
RPGツクールMZ
```json
{
"compilerOptions": {
"target": "es2020",
"module": "commonjs",
"baseUrl": "src",
"outDir": "build",
"inlineSourceMap": false,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitThis": true,
"removeComments": false,
"esModuleInterop": true,
"lib": [
"es2020",
]
},
"types": [
"rpgmakermz_types"
]
}
License を参照してください