Skip to main content

resolveSignature

Resolves the first callable signature from a reflection by following reference and conditional type chains. Handles properties whose type is a reference to a function type alias (e.g. listen: ListenType ).


Import
import { resolveSignature } from "@docsgen/core"

Parameters

resolveSignature(reflection: SomeReflection, reflectionsTree: ProjectReflection[])
Parameters
NameTypeDescription
reflection
SomeReflection
reflectionsTree
ProjectReflection[]

Returns

undefined | SignatureReflection