Skip to content

Commit 41bdd29

Browse files
committed
chore: Remove unused API & export all types.
1 parent 18a3d9e commit 41bdd29

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/@css-blocks/build/src/testing/transient-fs.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ export interface FileContent {
66
[filename: string]: string | FileContent;
77
}
88

9-
interface Transient {
9+
export interface TransientFiles {
1010
(filesObj: FileContent): void;
1111
restore: () => void;
1212
_files: string[];
1313
_directories: string[];
14-
readonly DIRECTORY: symbol;
1514
}
1615

1716
function transientFS(filesObj: FileContent) {
@@ -39,7 +38,6 @@ function transientFS(filesObj: FileContent) {
3938
}
4039
}
4140
}
42-
const DIRECTORY = Symbol("transient directory");
4341

4442
function restore() {
4543
let file, dir;
@@ -55,10 +53,9 @@ function restore() {
5553
}
5654
}
5755

58-
const transient: Transient = Object.assign(transientFS, {
56+
const transient: TransientFiles = Object.assign(transientFS, {
5957
_files: [],
6058
_directories: [],
61-
DIRECTORY,
6259
restore,
6360
});
6461

0 commit comments

Comments
 (0)