Describe the feature
A TsModuleDecl has declare: true when within a nested namespace.
Ok(TsModuleDecl {
span: span!(start),
declare: self.ctx().in_declare,
id: TsModuleName::Ident(id),
body: Some(body),
global: false,
})
So this means there's no way to tell if there's a declare keyword on the nested namespace.
declare module "@dsherret/package" {
namespace packageName {
}
}
Would it be possible to change the parser to only have declare on nodes that have a declare keyword?