@robowhale/phaser3-ninepatch-types-fix
v1.0.4
Published
Typescript definitions for phaser3-ninepatch-plugin
Maintainers
Readme
General info
(Better) typescript definitions for the https://github.com/koreezgames/phaser3-ninepatch-plugin
The original plugin comes with the definitions, but they have some issues:
GameObjectFactoryandGameObjectCreatoreare not properly patched- some properties of the
NinePatchmarked asprivateand I need them to bepublicfor my 9-patch editor
Usage
Install the package
npm install @robowhale/phaser3-ninepatch-types-fixThen add index.d.ts file to the files section of tsconfig.json
"files": [
"node_modules/@robowhale/phaser3-ninepatch-types-fix/index.d.ts"
]Typescript compiler warnings
Typescript will throw some warnings because these types conflicts with the original types.
To suppress them add "skipLibCheck": true to your tsconfig.json
