mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 20:59:35 +08:00
7 lines
205 B
TypeScript
7 lines
205 B
TypeScript
import { Task } from '..';
|
|
|
|
export const execTask = async <T>(taskName, options?: T) => {
|
|
const task = await import(`${__dirname}/../tasks/${taskName}.ts`);
|
|
return task.default(options) as Task<T>;
|
|
};
|