import { CallableDeclaration } from './callable'; import { Expression, Identifier } from './expressions'; import { Type } from './type'; export interface ParameterSpec { name: string; type: Type; documentation?: string; optional?: boolean; default?: Expression; } /** * It's just neat if Parameter extends Identifier so you can use it directly in the body definition */ export declare class Parameter extends Identifier { readonly scope: CallableDeclaration; readonly spec: ParameterSpec; readonly documentation?: string; constructor(scope: CallableDeclaration, spec: ParameterSpec); get optional(): boolean; get type(): Type; get default(): Expression | undefined; }