JsModule { bom_token: missing (optional), interpreter_token: missing (optional), directives: JsDirectiveList [], items: JsModuleItemList [ TsDeclareStatement { declare_token: DECLARE_KW@0..8 "declare" [] [Whitespace(" ")], declaration: JsClassDeclaration { decorators: JsDecoratorList [], abstract_token: missing (optional), class_token: CLASS_KW@8..14 "class" [] [Whitespace(" ")], id: JsIdentifierBinding { name_token: IDENT@14..16 "A" [] [Whitespace(" ")], }, type_parameters: missing (optional), extends_clause: missing (optional), implements_clause: missing (optional), l_curly_token: L_CURLY@16..18 "{" [] [Whitespace(" ")], members: JsClassMemberList [ JsBogusMember { items: [ TsPropertySignatureModifierList [], JsLiteralMemberName { value: IDENT@18..22 "prop" [] [], }, TsDefinitePropertyAnnotation { excl_token: BANG@22..23 "!" [] [], type_annotation: TsTypeAnnotation { colon_token: COLON@23..25 ":" [] [Whitespace(" ")], ty: TsStringType { string_token: STRING_KW@25..32 "string" [] [Whitespace(" ")], }, }, }, ], }, ], r_curly_token: R_CURLY@32..33 "}" [] [], }, }, JsClassDeclaration { decorators: JsDecoratorList [], abstract_token: missing (optional), class_token: CLASS_KW@33..40 "class" [Newline("\n")] [Whitespace(" ")], id: JsIdentifierBinding { name_token: IDENT@40..42 "B" [] [Whitespace(" ")], }, type_parameters: missing (optional), extends_clause: missing (optional), implements_clause: missing (optional), l_curly_token: L_CURLY@42..44 "{" [] [Whitespace(" ")], members: JsClassMemberList [ JsBogusMember { items: [ TsPropertySignatureModifierList [ TsDeclareModifier { modifier_token: DECLARE_KW@44..52 "declare" [] [Whitespace(" ")], }, ], JsLiteralMemberName { value: IDENT@52..56 "prop" [] [], }, TsDefinitePropertyAnnotation { excl_token: BANG@56..57 "!" [] [], type_annotation: TsTypeAnnotation { colon_token: COLON@57..59 ":" [] [Whitespace(" ")], ty: TsStringType { string_token: STRING_KW@59..66 "string" [] [Whitespace(" ")], }, }, }, ], }, ], r_curly_token: R_CURLY@66..67 "}" [] [], }, ], eof_token: EOF@67..68 "" [Newline("\n")] [], } 0: JS_MODULE@0..68 0: (empty) 1: (empty) 2: JS_DIRECTIVE_LIST@0..0 3: JS_MODULE_ITEM_LIST@0..67 0: TS_DECLARE_STATEMENT@0..33 0: DECLARE_KW@0..8 "declare" [] [Whitespace(" ")] 1: JS_CLASS_DECLARATION@8..33 0: JS_DECORATOR_LIST@8..8 1: (empty) 2: CLASS_KW@8..14 "class" [] [Whitespace(" ")] 3: JS_IDENTIFIER_BINDING@14..16 0: IDENT@14..16 "A" [] [Whitespace(" ")] 4: (empty) 5: (empty) 6: (empty) 7: L_CURLY@16..18 "{" [] [Whitespace(" ")] 8: JS_CLASS_MEMBER_LIST@18..32 0: JS_BOGUS_MEMBER@18..32 0: TS_PROPERTY_SIGNATURE_MODIFIER_LIST@18..18 1: JS_LITERAL_MEMBER_NAME@18..22 0: IDENT@18..22 "prop" [] [] 2: TS_DEFINITE_PROPERTY_ANNOTATION@22..32 0: BANG@22..23 "!" [] [] 1: TS_TYPE_ANNOTATION@23..32 0: COLON@23..25 ":" [] [Whitespace(" ")] 1: TS_STRING_TYPE@25..32 0: STRING_KW@25..32 "string" [] [Whitespace(" ")] 9: R_CURLY@32..33 "}" [] [] 1: JS_CLASS_DECLARATION@33..67 0: JS_DECORATOR_LIST@33..33 1: (empty) 2: CLASS_KW@33..40 "class" [Newline("\n")] [Whitespace(" ")] 3: JS_IDENTIFIER_BINDING@40..42 0: IDENT@40..42 "B" [] [Whitespace(" ")] 4: (empty) 5: (empty) 6: (empty) 7: L_CURLY@42..44 "{" [] [Whitespace(" ")] 8: JS_CLASS_MEMBER_LIST@44..66 0: JS_BOGUS_MEMBER@44..66 0: TS_PROPERTY_SIGNATURE_MODIFIER_LIST@44..52 0: TS_DECLARE_MODIFIER@44..52 0: DECLARE_KW@44..52 "declare" [] [Whitespace(" ")] 1: JS_LITERAL_MEMBER_NAME@52..56 0: IDENT@52..56 "prop" [] [] 2: TS_DEFINITE_PROPERTY_ANNOTATION@56..66 0: BANG@56..57 "!" [] [] 1: TS_TYPE_ANNOTATION@57..66 0: COLON@57..59 ":" [] [Whitespace(" ")] 1: TS_STRING_TYPE@59..66 0: STRING_KW@59..66 "string" [] [Whitespace(" ")] 9: R_CURLY@66..67 "}" [] [] 4: EOF@67..68 "" [Newline("\n")] [] -- ts_definite_assignment_in_ambient_context.ts:1:23 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Definite assignment operators '!' aren't allowed in ambient contexts. > 1 │ declare class A { prop!: string } │ ^ 2 │ class B { declare prop!: string } 3 │ -- ts_definite_assignment_in_ambient_context.ts:2:23 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Definite assignment operators '!' aren't allowed in ambient contexts. 1 │ declare class A { prop!: string } > 2 │ class B { declare prop!: string } │ ^ 3 │ -- declare class A { prop!: string } class B { declare prop!: string }