Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error in the TypeScript defs #270

Closed
bulgakovk opened this issue Jun 28, 2017 · 1 comment
Closed

An error in the TypeScript defs #270

bulgakovk opened this issue Jun 28, 2017 · 1 comment

Comments

@bulgakovk
Copy link

Hello there!
I've installed [email protected] using npm and then tried to compile my typescript file with only one string of code:

import * as phaser from "phaser-ce";

Then I got this error:

node_modules/phaser-ce/typescript/phaser.comments.d.ts(14728,11): error TS2415: Class 'Phaser.Matrix' incorrectly extends base class 'PIXI.Matrix'.
  Types of property 'append' are incompatible.
    Type '(matrix: Matrix) => Matrix' is not assignable to type '(matrix: Matrix) => Matrix'. Two different types with this name exist, but they are unrelated.
      Types of parameters 'matrix' and 'matrix' are incompatible.
        Type 'PIXI.Matrix' is not assignable to type 'Phaser.Matrix'.
          Property 'type' is missing in type 'Matrix'.
node_modules/phaser-ce/typescript/phaser.comments.d.ts(23888,11): error TS2415: Class 'Phaser.RenderTexture' incorrectly extends base class 'PIXI.RenderTexture'.
  Types of property 'render' are incompatible.
    Type '(displayObject: DisplayObject, matrix?: Matrix | undefined, clear?: boolean | undefined) => void' is not assignable to type '(displayObject: DisplayObject, matrix?: Matrix | undefined, clear?: boolean | undefined) => void'. Two different types with this name exist, but they are unrelated.
      Types of parameters 'matrix' and 'matrix' are incompatible.
        Type 'Matrix | undefined' is not assignable to type 'Matrix | undefined'. Two different types with this name exist, but they are unrelated.
          Type 'Matrix' is not assignable to type 'Matrix | undefined'.
            Type 'PIXI.Matrix' is not assignable to type 'Phaser.Matrix'.
@samme
Copy link
Collaborator

samme commented Jun 28, 2017

See #174.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants