I created a decorator called @Inject in typescript file, like this
export class A{
@Inject()
private b!: string
@Inject()
private c!: string
}
But vscode told me there was a mistake
export class A{
@Inject()
private b!: string
@Inject() //error : Decorators must precede the name and all keywords of property declarations.
private c!: string
}
But when I execute the TSC command, the terminal does not display any errors.
The strangest thing is that when I end with a semicolon, the error disappears.
export class A{
@Inject()
private b!: string ;
@Inject()
private c!: string ;
}

