@swell/cli
Version:
Swell's command line interface/utility
18 lines (17 loc) • 610 B
TypeScript
export type FunctionType = 'cron' | 'model' | 'route' | 'workflow';
export type FunctionLanguage = 'js' | 'ts';
export interface CreateFunctionArgs {
functionName: string;
trigger: FunctionType;
}
export interface WriteFunctionFileParams {
description: string;
events: string;
extension?: string;
functionName: string;
language: FunctionLanguage;
route: string;
schedule: string;
trigger: FunctionType;
}
export declare function getFunctionTemplate({ description, events, extension, functionName, language, route, schedule, trigger, }: WriteFunctionFileParams): string;