Skip to content

TS types Inncompatible with version 7.3.2 #8

Description

@human211

when I try to build client code with pixi/node dep I see errors:

../draw/src/views/figures/FigureCircle.ts:14:19 - error TS2345: Argument of type 'Graphics' is not assignable to parameter of type 'DisplayObject'.
  Types of property 'children' are incompatible.
    Type 'DisplayObject[]' is not assignable to type 'readonly FederatedEventTarget[]'.

14     this.addChild(this._gr);
------

../draw/src/views/figures/FigureText.ts:20:25 - error TS2345: Argument of type 'Text' is not assignable to parameter of type 'DisplayObject'.

20     this._cont.addChild(this._text);

------
src/draw.service.ts:116:74 - error TS2345: Argument of type 'Graphics' is not assignable to parameter of type 'DisplayObject | RenderTexture'.
  Type 'Graphics' is not assignable to type 'DisplayObject'.

116     this.curTimelineCanvas = drawed ? (this._app.renderer.extract.canvas(cont) as unknown as Canvas) : null;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions