mirror of
https://github.com/grafana/grafana.git
synced 2025-09-23 01:13:16 +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>;
|
|
};
|