Skip to content

extractTypeDefinitionsFromPath

reference
1 min readUpdated

Kind: Function

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

Extract type definitions (interfaces and type aliases) from file Returns a map of type name to type declaration node

Signature

ts
function extractTypeDefinitionsFromPath(path: NodePath<t.Program>): TypeDefinitionMap

Parameters

NameType
pathNodePath<t.Program>

Returns: TypeDefinitionMap

Was this page helpful?

Download as PDF