gypsum
Version:
Simple and easy lightweight typescript server side framework on Node.js.
19 lines (18 loc) • 536 B
TypeScript
import { CorsOptions } from 'cors';
import { API_TYPES } from '../types';
export interface IAppOptions {
mongodb_url?: string;
database_name?: string;
namespaces?: string[];
cors?: CorsOptions;
apiType?: API_TYPES;
models: (any)[];
}
export declare type IAppProdOptions = {
[key in keyof IAppOptions]?: IAppOptions[key];
};
export declare type IAppKeys = keyof IAppOptions;
export declare function APP(options: {
dev: IAppOptions;
prod?: IAppProdOptions;
}): (Target: any) => void;