@kform/scaffolder
Version:
Scaffolding utilities for KForm projects.
14 lines (13 loc) • 527 B
TypeScript
/** Supported file content types. */
export type ScaffoldingFileContent = string | number[] | Uint8Array | ArrayBuffer | Blob | NodeJS.ReadableStream;
/** File being scaffolded. */
export interface ScaffoldingFile {
/** The content is a base 64 string. */
base64?: boolean;
/** The content is a binary string. */
binary?: boolean;
/** The file should be executable. */
executable?: boolean;
/** Gets the file content. */
getContent(): ScaffoldingFileContent | Promise<ScaffoldingFileContent>;
}