Skip to content

Angular 14 maxGraph types (*.d.ts) errors #105

@Anthony-Wratpor

Description

@Anthony-Wratpor

Hello everyone,

i'm trying to use this library whit a new bare angular project.

I tried to clone the maxGraph repository and made the npm link to it in the angular project. So far so good.

But when i'm trying to build the app i have a bunch of errors in the types descriptions (*.d.ts).

To name a few i got :

"Error: ../maxGraph/packages/core/dist/types/gui/MaxPopupMenu.d.ts:29:15 - error TS2420: Class 'MaxPopupMenu' incorrectly implements interface 'Partial'",
"Error: ../maxGraph/packages/core/dist/types/view/cell/CellArray.d.ts:4:5 - error TS2416: Property 'concat' in type 'CellArray' is not assignable to the same property in base type 'Cell[]'",
"Error: ../maxGraph/packages/core/dist/types/view/layout/HierarchicalLayout.d.ts:197:5 - error TS2416: Property 'traverse' in type 'HierarchicalLayout' is not assignable to the same property in base type 'GraphLayout'."

I had similar issue with the old mxgraph back when i installed the mxGraph Types but I don't know what to do here. I'm sure i missed something or maybe it's not really compatible with angular yet?

If you have any idea of what coud be wrong here i would appreciate any help.

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions