mirror of
https://github.com/primedigitaltech/azon_seeker.git
synced 2026-01-31 11:49:18 +08:00
13 lines
307 B
TypeScript
13 lines
307 B
TypeScript
import type Emittery from 'emittery';
|
|
|
|
export type Listener<T> = Pick<Emittery<T>, 'on' | 'off' | 'once'>;
|
|
|
|
export interface taskOptionBase {
|
|
progress?: (remains: string[]) => Promise<void> | void;
|
|
}
|
|
|
|
export type WorkerComposable<Base, S = {}> = Base & {
|
|
settings: Ref<S>;
|
|
isRunning: Ref<boolean>;
|
|
};
|