Skip to content

DefinedCommand beta ​

TypeAlias of @v12-engine/engine

ts
export type DefinedCommand<T extends string, F extends Fields> = CommandDef<F> & {
    type: T;
    make(fields: Checked<F>): ModCommand;
};

A command type, with make to put one together for a session to send