Skip to content

Can't instantiate packages #76

Description

@farisd16

I am trying to follow instructions from README.dev.md, but after running pnpm --filter=webidl-to-ts build, I get the error:

src/codegen.ts:994:13 - error TS2345: Argument of type 'NodeArray<ModifierLike>' is not assignable to parameter of type 'readonly Modifier[]'.
  The types returned by 'concat(...)' are incompatible between these types.
    Type 'ModifierLike[]' is not assignable to type 'Modifier[]'.
      Type 'ModifierLike' is not assignable to type 'Modifier'.
        Type 'Decorator' is not assignable to type 'Modifier'.
          Type 'Decorator' is not assignable to type 'StaticKeyword'.
            Types of property 'kind' are incompatible.
              Type 'SyntaxKind.Decorator' is not assignable to type 'SyntaxKind.StaticKeyword'.

994             node.modifiers,

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions