index.d.ts 691 B

1234567891011
  1. import prettier from "prettier";
  2. export declare function rootDir(path: string): string;
  3. export declare function firstUpperCase(value: string): string;
  4. export declare function toCamel(str: string): string;
  5. export declare function createDir(path: string, recursive?: boolean): void;
  6. export declare function readFile(path: string, json?: boolean): any;
  7. export declare function writeFile(path: string, data: any): void | "";
  8. export declare function parseJson(req: any): Promise<any>;
  9. export declare function formatContent(content: string, options?: prettier.Options): Promise<string>;
  10. export declare function error(message: string): void;
  11. export declare function success(message: string): void;