UNPKG

hygen

Version:

The scalable code generator that saves you time.

28 lines (26 loc) 574 B
// @flow export type Logger = { ok: (msg: string) => void, notice: (msg: string) => void, warn: (msg: string) => void, err: (msg: string) => void, log: (msg: string) => void, colorful: (msg: string) => void } export type RenderedAction = { file: string, attributes: Object, body: string } export type RunnerConfig = { exec: (sh: string, body: string) => void, templates: string, cwd: string, logger: Logger, debug: boolean, helpers: Object } export type ResolverIO = { exists: string => Promise<boolean>, load: string => Promise<Object> }