Skip to content

Commit 502d6dd

Browse files
committed
make typescript happy
1 parent e0411f6 commit 502d6dd

File tree

1 file changed

+8
-4
lines changed
  • packages/svelte/src/compiler/phases/3-transform

1 file changed

+8
-4
lines changed

packages/svelte/src/compiler/phases/3-transform/index.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export function transform_component(analysis, source, options) {
2020
warnings: transform_warnings(source, options.filename, analysis.warnings),
2121
metadata: {
2222
runes: analysis.runes
23-
}
23+
},
24+
ast: /** @type {any} */ (null) // set afterwards
2425
};
2526
}
2627

@@ -62,7 +63,8 @@ export function transform_component(analysis, source, options) {
6263
warnings: transform_warnings(source, options.filename, analysis.warnings), // TODO apply preprocessor sourcemap
6364
metadata: {
6465
runes: analysis.runes
65-
}
66+
},
67+
ast: /** @type {any} */ (null) // set afterwards
6668
};
6769
}
6870

@@ -80,7 +82,8 @@ export function transform_module(analysis, source, options) {
8082
warnings: transform_warnings(source, analysis.name, analysis.warnings),
8183
metadata: {
8284
runes: true
83-
}
85+
},
86+
ast: /** @type {any} */ (null) // set afterwards
8487
};
8588
}
8689

@@ -105,7 +108,8 @@ export function transform_module(analysis, source, options) {
105108
warnings: transform_warnings(source, analysis.name, analysis.warnings),
106109
metadata: {
107110
runes: true
108-
}
111+
},
112+
ast: /** @type {any} */ (null) // set afterwards
109113
};
110114
}
111115

0 commit comments

Comments
 (0)