Skip to content

TypeParameterInfo

ts
export interface TypeParameterInfo {
    name: string;
    constraint?: string;
    default?: string;
}

WARNING

Not to be used directly.

Representation of a type parameter in the TypeScript AST. This interface includes properties for the name of the type parameter, an optional constraint that specifies the type that the type parameter must extend or implement, and an optional default type that is used if no specific type is provided when the type parameter is used. This information is crucial for understanding generic types and their behavior in TypeScript, allowing for accurate representation and analysis of generic code elements in the parsed output.