chore(ast): add doc to TSExportAssignment and TSNamespaceExportDeclaration

This commit is contained in:
Boshen 2023-05-05 21:25:40 +08:00
parent 028738f3a0
commit 8ca5c4ce2e
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1

View file

@ -866,6 +866,9 @@ impl<'a> Modifiers<'a> {
}
}
/// Export Assignment in non-module files
///
/// `export = foo`
#[derive(Debug, PartialEq, Hash)]
#[cfg_attr(feature = "serde", derive(Serialize), serde(tag = "type", rename_all = "camelCase"))]
pub struct TSExportAssignment<'a> {
@ -874,6 +877,9 @@ pub struct TSExportAssignment<'a> {
pub expression: Expression<'a>,
}
/// Namespace Export Declaration in declaration files
///
/// `export as namespace foo`
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serde", derive(Serialize), serde(tag = "type", rename_all = "camelCase"))]
pub struct TSNamespaceExportDeclaration {