You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ass/backend/templates/command.ts

9 lines
318 B

import { TemplateCommandOp, TemplateCommandSchema } from 'ass';
import { TemplateContext } from './executor';
export type TemplateCommand<N extends string, S extends TemplateCommandSchema> = {
readonly name: N;
readonly schema: S;
exec: (op: TemplateCommandOp<N, S>, ctx: TemplateContext) => string;
};