mirror of https://github.com/tycrek/ass
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.
10 lines
322 B
10 lines
322 B
import { TemplateCommandOp, TemplateCommandSchema } from 'ass';
|
|
|
|
import { TemplateContext } from './executor.js';
|
|
|
|
export type TemplateCommand<N extends string, S extends TemplateCommandSchema> = {
|
|
readonly name: N;
|
|
readonly schema: S;
|
|
|
|
exec: (op: TemplateCommandOp<N, S>, ctx: TemplateContext) => string;
|
|
}; |