blob: 2898467c2e6a343d992b4636fb728e4ce22468fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
export function createTask<T extends Task.Callable>(
name: string,
id: number | undefined,
callable: T,
...parameters: Parameters<T>
): Task.Task<T> {
return {
name,
id,
callable,
parameters,
};
}
|