mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 12:56:05 +00:00
18 lines
367 B
TypeScript
18 lines
367 B
TypeScript
import { Type } from "core/utils";
|
|
import { Task } from "../Task";
|
|
|
|
export class RenderTask<Output extends Record<string, any>> extends Task<
|
|
typeof RenderTask.schema,
|
|
Output
|
|
> {
|
|
type = "render";
|
|
|
|
static override schema = Type.Object({
|
|
render: Type.String(),
|
|
});
|
|
|
|
async execute() {
|
|
return this.params.render as unknown as Output;
|
|
}
|
|
}
|