Files
AFFiNE-Mirror/packages/env/src/automation.ts
2023-08-01 19:13:24 +00:00

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;
};