@@ -20,7 +20,7 @@ use serde::Serialize;
2020#[ cfg( feature = "serialize" ) ]
2121use tsify:: Tsify ;
2222
23- use super :: { inherit_variants, js:: * , jsx:: * , literal:: * , Modifiers } ;
23+ use super :: { inherit_variants, js:: * , jsx:: * , literal:: * } ;
2424
2525#[ cfg( feature = "serialize" ) ]
2626#[ wasm_bindgen:: prelude:: wasm_bindgen( typescript_custom_section) ]
@@ -597,8 +597,7 @@ pub struct TSTypeAliasDeclaration<'a> {
597597 pub id : BindingIdentifier < ' a > ,
598598 pub type_annotation : TSType < ' a > ,
599599 pub type_parameters : Option < Box < ' a , TSTypeParameterDeclaration < ' a > > > ,
600- /// Valid Modifiers: `declare`, `export`
601- pub modifiers : Modifiers < ' a > ,
600+ pub declare : bool ,
602601}
603602
604603#[ derive( Debug , Clone , Copy , PartialEq , Eq , Hash ) ]
@@ -635,8 +634,7 @@ pub struct TSInterfaceDeclaration<'a> {
635634 pub body : Box < ' a , TSInterfaceBody < ' a > > ,
636635 pub type_parameters : Option < Box < ' a , TSTypeParameterDeclaration < ' a > > > ,
637636 pub extends : Option < Vec < ' a , TSInterfaceHeritage < ' a > > > ,
638- /// Valid Modifiers: `export`, `default`, `declare`
639- pub modifiers : Modifiers < ' a > ,
637+ pub declare : bool ,
640638}
641639
642640#[ visited_node]
@@ -803,8 +801,7 @@ pub struct TSModuleDeclaration<'a> {
803801 /// ^^^^^^
804802 /// ```
805803 pub kind : TSModuleDeclarationKind ,
806- /// Valid Modifiers: `declare`, `export`
807- pub modifiers : Modifiers < ' a > ,
804+ pub declare : bool ,
808805 pub scope_id : Cell < Option < ScopeId > > ,
809806}
810807
0 commit comments