UNPKG

@swell/cli

Version:

Swell's command line interface/utility

19 lines (18 loc) 659 B
type FunctionType = 'cron' | 'model' | 'route'; type FunctionLanguage = 'js' | 'ts'; interface CreateFunctionArgs { functionName: string; trigger: FunctionType; } interface WriteFunctionFileParams { description: string; events: string; extension?: string; functionName: string; language: FunctionLanguage; route: string; schedule: string; trigger: FunctionType; } declare const getFunctionTemplate: ({ description, events, extension, language, route, schedule, trigger, }: WriteFunctionFileParams) => string; export { CreateFunctionArgs, FunctionLanguage, FunctionType, WriteFunctionFileParams, getFunctionTemplate, };