mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
Fix types
This commit is contained in:
parent
b7529b13e1
commit
1c9e2a08aa
@ -1,15 +1,8 @@
|
|||||||
import * as cluster from 'cluster';
|
import * as cluster from 'cluster';
|
||||||
import {Worker} from 'cluster';
|
import {Worker} from 'cluster';
|
||||||
import {Logger} from '../../Logger';
|
import {Logger} from '../../Logger';
|
||||||
import {
|
import {DiskManagerTask, WorkerMessage, WorkerTask, WorkerTaskTypes,} from './Worker';
|
||||||
DiskManagerTask,
|
|
||||||
ThumbnailTask,
|
|
||||||
WorkerMessage,
|
|
||||||
WorkerTask,
|
|
||||||
WorkerTaskTypes,
|
|
||||||
} from './Worker';
|
|
||||||
import {ParentDirectoryDTO} from '../../../common/entities/DirectoryDTO';
|
import {ParentDirectoryDTO} from '../../../common/entities/DirectoryDTO';
|
||||||
import { RendererInput } from './PhotoWorker';
|
|
||||||
import {TaskQue, TaskQueEntry} from './TaskQue';
|
import {TaskQue, TaskQueEntry} from './TaskQue';
|
||||||
import {ITaskExecuter} from './TaskExecuter';
|
import {ITaskExecuter} from './TaskExecuter';
|
||||||
import {DirectoryScanSettings} from './DiskMangerWorker';
|
import {DirectoryScanSettings} from './DiskMangerWorker';
|
||||||
@ -111,8 +104,7 @@ export class ThreadPool<O> {
|
|||||||
|
|
||||||
export class DiskManagerTH
|
export class DiskManagerTH
|
||||||
extends ThreadPool<ParentDirectoryDTO>
|
extends ThreadPool<ParentDirectoryDTO>
|
||||||
implements ITaskExecuter<string, ParentDirectoryDTO>
|
implements ITaskExecuter<string, ParentDirectoryDTO> {
|
||||||
{
|
|
||||||
execute(
|
execute(
|
||||||
relativeDirectoryName: string,
|
relativeDirectoryName: string,
|
||||||
settings: DirectoryScanSettings = {}
|
settings: DirectoryScanSettings = {}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import {DirectoryScanSettings, DiskMangerWorker} from './DiskMangerWorker';
|
import {DirectoryScanSettings, DiskMangerWorker} from './DiskMangerWorker';
|
||||||
import {Logger} from '../../Logger';
|
import {Logger} from '../../Logger';
|
||||||
import { PhotoWorker, RendererInput } from './PhotoWorker';
|
import {MediaRendererInput, PhotoWorker} from './PhotoWorker';
|
||||||
import {Utils} from '../../../common/Utils';
|
import {Utils} from '../../../common/Utils';
|
||||||
import {MediaDTO} from '../../../common/entities/MediaDTO';
|
import {MediaDTO} from '../../../common/entities/MediaDTO';
|
||||||
import {ParentDirectoryDTO} from '../../../common/entities/DirectoryDTO';
|
import {ParentDirectoryDTO} from '../../../common/entities/DirectoryDTO';
|
||||||
@ -56,7 +56,7 @@ export interface DiskManagerTask extends WorkerTask {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ThumbnailTask extends WorkerTask {
|
export interface ThumbnailTask extends WorkerTask {
|
||||||
input: RendererInput;
|
input: MediaRendererInput;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const WorkerTask = {
|
export const WorkerTask = {
|
||||||
|
Loading…
Reference in New Issue
Block a user