mirror of https://github.com/morpheus65535/bazarr
15 lines
280 B
TypeScript
15 lines
280 B
TypeScript
|
declare namespace Task {
|
||
|
type Callable = (...args: any[]) => Promise<void>;
|
||
|
|
||
|
interface Task<FN extends Callable> {
|
||
|
name: string;
|
||
|
id?: number;
|
||
|
callable: FN;
|
||
|
parameters: Parameters<FN>;
|
||
|
}
|
||
|
|
||
|
type Group = {
|
||
|
[category: string]: Task.Task<Callable>[];
|
||
|
};
|
||
|
}
|