@robowhale/phaser3-ninepatch-types-fix
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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 and GameObjectCreatore are not properly patched
  • some properties of the NinePatch marked as private and I need them to be public 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

Package Sidebar

Install

npm i @robowhale/phaser3-ninepatch-types-fix

Weekly Downloads

14

Version

1.0.4

License

MIT

Unpacked Size

3.95 kB

Total Files

4

Last publish

Collaborators

  • vforsh