Skip to content

Parser can not handle generic typed classes with interfaces #46

@d1820

Description

@d1820

tsco.json

When trying to organize a class that is generic

export class MYComponent<T extends keyof typeof ComponentProviderMap = 'TextBox'>
  implements ICustomElementViewModel { }

it ends up cutting out part of the class line

export class MYComponent<T extends keyof typeof ComponentProviderMap = 'TextBox'>
  im

Seems like the generic <> is not playing nice with the parser

looks like it may also be related to using decorators on the class

@customElement('my-component')
@inject(ILoggingService)
export class MYComponent<T extends keyof typeof ComponentProviderMap = 'TextBox'> implements ICustomElementViewModel {}
export class MYComponent<T extends keyof typeof ComponentProviderMap = 'TextBox'>
  im

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