16 lines
614 B
TypeScript
16 lines
614 B
TypeScript
import type { InstallerFs } from "../types/installer.types.js";
|
|
|
|
/**
|
|
* Mutating extension to {@link InstallerFs} used internally by the host's
|
|
* apply stage. Plugins only see the read-only `InstallerFs`.
|
|
*/
|
|
export interface MutableInstallerFs extends InstallerFs {
|
|
writeFile(path: string, contents: Uint8Array, mode?: number): Promise<void>;
|
|
deleteFile(path: string): Promise<void>;
|
|
mkdir(path: string): Promise<void>;
|
|
rename(from: string, to: string): Promise<void>;
|
|
writeJson(path: string, value: unknown): Promise<void>;
|
|
}
|
|
|
|
export type { InstallerFs } from "../types/installer.types.js";
|