1.0.4 • Published 3 years ago
@robowhale/phaser3-ninepatch-types-fix v1.0.4
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:
GameObjectFactory
andGameObjectCreatore
are not properly patched- some properties of the
NinePatch
marked asprivate
and I need them to bepublic
for my 9-patch editor
Usage
Install the package
npm install @robowhale/phaser3-ninepatch-types-fix
Then 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