UNPKG

@swell/cli

Version:

Swell's command line interface/utility

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