@ikona/cli
Version:
12 lines (10 loc) • 438 B
text/typescript
declare function validatePath(path: string | undefined, errorMessage: string): asserts path is string;
declare function clear(folderPath: string): void;
interface WriteIfChangedOptions {
filepath: string;
newContent: string;
hash?: string;
force?: boolean;
}
declare function writeIfChanged({ filepath, newContent, hash, force, }: WriteIfChangedOptions): Promise<boolean>;
export { clear, validatePath, writeIfChanged };