lux-framework
Version:
Build scalable, Node.js-powered REST APIs with almost no code.
12 lines (10 loc) • 316 B
JavaScript
// @flow
export type Generator$opts = {
cwd: string;
type: string;
name: string;
attrs: Array<string>;
onConflict(text: string): Promise<string | boolean>;
};
export type Generator = (opts: Generator$opts) => Promise<void>;
export type Generator$template = (name: string, attrs: Array<string>) => string;