@omni-door/utils
Version:
The utils of omni-door's projects
35 lines (34 loc) • 1.05 kB
TypeScript
import type { STRATEGY, PROJECT_TYPE, STYLE, MARKDOWN } from './global';
export interface ENV_NEW {
componentName: string;
style?: STYLE;
ts?: boolean;
test?: boolean;
md?: MARKDOWN | boolean;
[propsName: string]: string | boolean | number | void;
}
export declare function _typeof(ele: any): string;
export declare function tplEngineNew(tpls: {
[tplName: string]: string;
}, tplName: string, params?: {
[param: string]: string | number | boolean;
}): (envs: ENV_NEW) => string;
export interface ENV_INIT {
project_name: string;
project_type?: PROJECT_TYPE;
style?: STYLE;
strategy?: STRATEGY;
ts?: boolean;
test?: boolean;
eslint?: boolean;
prettier?: boolean;
commitlint?: boolean;
stylelint?: boolean;
configFileName?: string;
[propsName: string]: string | boolean | number | void;
}
export declare function tplEngineInit(tpls: {
[tplName: string]: string;
}, tplName: string, params?: {
[param: string]: string | number | boolean;
}): (envs: ENV_INIT) => string;