Skip to content

extractExportedNamesFromDeclaration

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/parser-core/src/utils/ast-helpers.ts

Extract exported names from export declarations

Signature

ts
function extractExportedNamesFromDeclaration(path: NodePath<t.ExportNamedDeclaration | t.ExportDefaultDeclaration>): Set<string>

Parameters

NameType
path`NodePath<t.ExportNamedDeclaration

Returns: Set<string>

Was this page helpful?

Download as PDF