Skip to content

Commit e9854d6

Browse files
Resolve typescript babel error
1 parent 5b68dda commit e9854d6

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

lib/utils/js-parser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const options = {
2424
'nullishCoalescingOperator',
2525
'optionalChaining',
2626
'decorators-legacy',
27+
'typescript',
2728
],
2829
};
2930

test/fixtures/app/example-ts/classic-to-flat.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ module.exports = {
3737
'layout-name': {
3838
'has-layout-name.ts': [
3939
'// top-level-component.ts',
40+
'interface IArgs {key: string}',
4041
'Component.extend({ layoutName: "components/layout-name/layout-name-template" });',
4142
].join('\n'),
4243
},

test/fixtures/app/example-ts/classic-to-nested.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ module.exports = {
4646
'layout-name': {
4747
'has-layout-name.ts': [
4848
'// top-level-component.ts',
49+
'interface IArgs {key: string}',
4950
'Component.extend({ layoutName: "components/layout-name/layout-name-template" });',
5051
].join('\n'),
5152
},

test/fixtures/app/example-ts/input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ module.exports = {
2222
'super-nested-component.ts': '// nested1/nested2/super-nested-component.ts',
2323
},
2424
},
25-
2625
// A component with layoutName
2726
'layout-name': {
2827
'has-layout-name.ts': [
2928
'// top-level-component.ts',
29+
'interface IArgs {key: string}',
3030
'Component.extend({ layoutName: "components/layout-name/layout-name-template" });',
3131
].join('\n'),
3232
},

0 commit comments

Comments
 (0)