@becomes/cms
Version:
Simple CMS for building APIs.
15 lines (14 loc) • 329 B
TypeScript
import { Request } from 'express';
export declare enum FnType {
STANDALONE = "STANDALINE",
EVENT_PIPE = "EVENT_PIPE"
}
export interface FnEventInput {
name: string;
payload?: any;
}
export interface Fn {
name: string;
type: FnType;
resolve: (request: Request, event?: FnEventInput) => Promise<any>;
}