Initial Commit
This commit is contained in:
15
packages/devtools/tooling/installer/src/fs/installer-fs.ts
Normal file
15
packages/devtools/tooling/installer/src/fs/installer-fs.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
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";
|
||||
Reference in New Issue
Block a user