Skip to content

extractImportsFromDeclaration

reference
1 min readUpdated

Kind: Function

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

Extract imports from an ImportDeclaration node

Signature

ts
function extractImportsFromDeclaration(path: NodePath<t.ImportDeclaration>): ImportInfo[]

Parameters

NameType
pathNodePath<t.ImportDeclaration>

Returns: ImportInfo[]

Was this page helpful?

Download as PDF