amis-rpc-design/node_modules/@react-native-community/cli/build/commands/init/template.d.ts

12 lines
737 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import execa from 'execa';
export type TemplateConfig = {
placeholderName: string;
templateDir: string;
postInitScript?: string;
titlePlaceholder?: string;
};
export declare function installTemplatePackage(templateName: string, root: string, npm?: boolean): Promise<execa.ExecaReturnValue<string>>;
export declare function getTemplateConfig(templateName: string, templateSourceDir: string): TemplateConfig;
export declare function copyTemplate(templateName: string, templateDir: string, templateSourceDir: string): Promise<void>;
export declare function executePostInitScript(templateName: string, postInitScript: string, templateSourceDir: string): execa.ExecaChildProcess<string>;
//# sourceMappingURL=template.d.ts.map