inngest-setup-redwoodjs
Version:
Setup Inngest in RedwoodJS
30 lines (29 loc) • 845 B
TypeScript
import type Yargs from 'yargs';
interface BaseOptions {
cwd: string | undefined;
}
export interface ForceOptions extends BaseOptions {
force: boolean;
}
export interface SetupInngestFunctionOptions extends ForceOptions {
name: string;
eventName?: string;
type: 'background' | 'scheduled' | 'delayed' | 'step' | 'fan-out';
graphql: boolean;
operationType?: 'query' | 'mutation';
}
export declare const command = "inngest-setup-redwoodjs function";
export declare const description = "Set up an Inngest function";
export declare const builder: (yargs: Yargs.Argv) => Yargs.Argv<{
name: string | undefined;
} & {
eventName: string | undefined;
} & {
graphql: boolean;
} & {
type: string | undefined;
} & {
force: boolean;
}>;
export declare const handler: (options: any) => Promise<void>;
export {};