UNPKG

1.39 kBTypeScriptView Raw
1declare type Argument0<T> = T extends ((x: infer X, ...z: any[]) => any) ? X : never;
2declare type Argument1<T> = T extends ((a: any, x: infer X, ...z: any[]) => any) ? X : never;
3declare type Argument2<T> = T extends ((a: any, b: any, x: infer X, ...z: any[]) => any) ? X : never;
4export declare namespace description {
5 interface commands {
6 dispatch(cmd: '$init', ...args: []): ReturnType<typeof import('./commands/$init').default>;
7 dispatch(cmd: 'asset', ...args: [Argument1<typeof import('./commands/asset').default>, Argument2<typeof import('./commands/asset').default>]): ReturnType<typeof import('./commands/asset').default>;
8 dispatch(cmd: 'compile', ...args: [Argument0<typeof import('./commands/compile').default>, Argument2<typeof import('./commands/compile').default>]): ReturnType<typeof import('./commands/compile').default>;
9 dispatch(cmd: 'remove-asset', ...args: [Argument1<typeof import('./commands/remove-asset').default>, Argument2<typeof import('./commands/remove-asset').default>]): ReturnType<typeof import('./commands/remove-asset').default>;
10 dispatch(cmd: 'route', ...args: [Argument0<typeof import('./commands/route').default>, Argument1<typeof import('./commands/route').default>, Argument2<typeof import('./commands/route').default>]): ReturnType<typeof import('./commands/route').default>;
11 }
12}
13export {};