File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
packages/tailwindcss-language-server/src/testing Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,14 @@ export interface TestUtils {
9
9
root : string
10
10
}
11
11
12
+ export interface StorageSymlink {
13
+ [ IS_A_SYMLINK ] : true
14
+ filepath : string
15
+ }
16
+
12
17
export interface Storage {
13
18
/** A list of files and their content */
14
- [ filePath : string ] : string | Uint8Array | { [ IS_A_SYMLINK ] : true ; filepath : string }
19
+ [ filePath : string ] : string | Uint8Array | StorageSymlink
15
20
}
16
21
17
22
export interface TestConfig < Extras extends { } > {
@@ -70,7 +75,7 @@ async function setup<T>(config: TestConfig<T>): Promise<TestUtils> {
70
75
}
71
76
72
77
const IS_A_SYMLINK = Symbol ( 'is-a-symlink' )
73
- export const symlinkTo = function ( filepath : string ) {
78
+ export function symlinkTo ( filepath : string ) : StorageSymlink {
74
79
return {
75
80
[ IS_A_SYMLINK ] : true as const ,
76
81
filepath,
You can’t perform that action at this time.
0 commit comments