File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -302,6 +302,12 @@ export function testTypeAlias2(test: nodeunit.Test): void {
302
302
roundTrip ( test , `type strings = string|string[];` ) ;
303
303
}
304
304
305
+ export function testTypeAliasInModule ( test : nodeunit . Test ) : void {
306
+ roundTrip ( test , `declare module "foo" {
307
+ type strings = string|string[];
308
+ }` ) ;
309
+ }
310
+
305
311
export function testImportDeclaration ( test : nodeunit . Test ) : void {
306
312
roundTrip ( test , `import foo = bar;` ) ;
307
313
}
Original file line number Diff line number Diff line change @@ -778,13 +778,15 @@ ambient_module_element
778
778
/ EXPORT __ result :ambient_enum_declaration { result .export = true ; return result; }
779
779
/ EXPORT __ result :ambient_module_declaration { result .export = true ; return result; }
780
780
/ EXPORT __ result :import_declaration { result .export = true ; return result; }
781
+ / EXPORT __ result :type_alias_declaration { result .export = true ; return result; }
781
782
/ ambient_variable_declaration
782
783
/ ambient_function_declaration
783
784
/ ambient_class_declaration
784
785
/ interface_declaration
785
786
/ ambient_enum_declaration
786
787
/ ambient_module_declaration
787
788
/ import_declaration
789
+ / type_alias_declaration
788
790
/ __
789
791
790
792
/* Class */
You can’t perform that action at this time.
0 commit comments