mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
13 lines
291 B
TypeScript
13 lines
291 B
TypeScript
import type { z } from 'zod';
|
|
|
|
export type Action<
|
|
InputSchema extends z.ZodObject<any, any, any, any>,
|
|
Args extends readonly any[],
|
|
> = {
|
|
id: string;
|
|
name: string;
|
|
description: string;
|
|
inputSchema: InputSchema;
|
|
action: (input: z.input<InputSchema>, ...args: Args) => void;
|
|
};
|