UNPKG

@mistlog/typetype

Version:

A programming language designed for typescript type generation

20 lines (19 loc) 644 B
import { IIdentifier } from "../basic"; import { IParamList, ITypeExpression } from "../expression"; export interface IFunctionType { kind: "FunctionType"; params: IFunctionTypeParam[]; returnType: ITypeExpression; typeParams?: IParamList; isConstructor?: boolean; } export declare function FunctionType(): JSX.Element; export declare function FunctionTypeParamList(): JSX.Element; export interface IFunctionTypeParam { kind: "FunctionTypeParam"; name: IIdentifier; type: ITypeExpression; rest?: boolean; optional?: boolean; } export declare function FunctionTypeParam(): JSX.Element;