Skip to content

ParamInfo

ts
export interface ParamInfo {
    name: string;
    isJSType: boolean;
    type?: string;
    default?: string;
    defaultParsed?: string | number | boolean | null;
    typeAst?: any;
    decorators?: DecoratorInfo[];
    loc?: Range;
}

WARNING

Not to be used directly.

Representation of a parameter in the TypeScript AST. This interface includes properties for the name of the parameter, its type (if specified), any default value it may have, and whether it is a JavaScript type. It also includes optional properties for the parsed default value, the abstract syntax tree (AST) representation of the type, any decorators applied to the parameter, and its location in the source code for reference.

References