import { Comic , FileManagerAdapter } from '@vcr/domain' ; import { ComicRepository } from './ComicRepository' ; export class ElectronComicRepository implements ComicRepository { constructor ( private fileManager ) { } async selectComic ( ) { return this . fileManager . selectFile ( [ 'cbz' , 'cbr' ] ) ; } async openComic ( file ) { return this . fileManager . openFile ( file ) as any ; } }