reformat: use correct type (fix eslint warning)
This commit is contained in:
parent
6e87ffc36c
commit
fea3f53681
|
@ -1,7 +1,6 @@
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { createWriteStream } from 'fs-extra';
|
import { createWriteStream } from 'fs-extra';
|
||||||
import { container } from '../../core/container';
|
import { container } from '../../core/container';
|
||||||
import type { Work } from '../../entities/library/work';
|
|
||||||
import type { DialogInterface } from '../dialog/dialog-interface';
|
import type { DialogInterface } from '../dialog/dialog-interface';
|
||||||
import { answer } from '../ipc/annotations/answer';
|
import { answer } from '../ipc/annotations/answer';
|
||||||
import type { SourceGetterInterface } from '../source/source-getter-interface';
|
import type { SourceGetterInterface } from '../source/source-getter-interface';
|
||||||
|
@ -50,7 +49,7 @@ export class NhentaiIpcController implements IpcController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@answer(IpcChannel.NHENTAI_GET_WORK)
|
@answer(IpcChannel.NHENTAI_GET_WORK)
|
||||||
public async nhentaiGetWork({ galleryId }: { galleryId: string }): Promise<Work> {
|
public async nhentaiGetWork({ galleryId }: { galleryId: string }): Promise<WorkEntityInterface> {
|
||||||
const work = await this.nhentaiSourceGetter.find(galleryId);
|
const work = await this.nhentaiSourceGetter.find(galleryId);
|
||||||
|
|
||||||
return work;
|
return work;
|
||||||
|
|
Loading…
Reference in New Issue