vojtechhabarta / typescript-generator

Generates TypeScript from Java - JSON declarations, REST service client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

missing override keyword when creating fromData method on inherited class

alebo611 opened this issue · comments

If a class A inherits class B,
the resulting typescript classes will both have each a fromData method.
However, A, must have the keyword is missing the "override" keyword in order to be syntactically correct typescript.

wrong:
static fromData(data: FooBar, target?: FooBar): FooBar {

correct:
static override fromData(data: FooBar, target?: FooBar): FooBar {

I have the same problem. I get exported

export class EditChapterDto extends ChapterDto<EditChapterDto> {
  children: EditChapterDto[];

but I need to have

export class EditChapterDto extends ChapterDto<EditChapterDto> {
   override  children: EditChapterDto[];