@microsoft/api-extractor
Version:
Validate, document, and review the exported API for a TypeScript library
15 lines (14 loc) • 497 B
TypeScript
import { AstItem, IAstItemOptions } from './AstItem';
/**
* This class is part of the AstItem abstract syntax tree. It represents parameters of a function declaration
*/
export declare class AstParameter extends AstItem {
isOptional: boolean;
type: string;
/**
* If there is a spread operator before the parameter declaration
* Example: foo(...params: string[])
*/
isSpread: boolean;
constructor(options: IAstItemOptions, docComment?: string);
}