export class Novel { constructor ( public id , public title , public cover , public status , public source , public datePublished , public lastUpdated , public chaptersCount , public synopsis , public authors , public genres ? ) { } get getAuthors ( ) { return this . authors . map ( author => author . name ) . join ( "," ) ; } } export class EmptyNovel extends Novel { constructor ( ) { super ( - 1 , "ttile" , "cover" , "status" , "source" , new Date ( ) , new Date ( ) , 0 , "synopsis" , [ ] ) ; } }