Skip to content

extractPropsFromParameter

reference
1 min readUpdated

Kind: Function

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

Extract props from a function component's first parameter

Signature

ts
function extractPropsFromParameter(param: t.Node | null | undefined, typeDefinitions: TypeDefinitionMap): PropInfo[]

Parameters

NameType
param`t.Node
typeDefinitionsTypeDefinitionMap

Returns: PropInfo[]

Was this page helpful?

Download as PDF