getdocs2ts
Version:
This is a utility that transforms code documented with getdocs-style doc comments into TypeScript definition files
12 lines (11 loc) • 693 B
TypeScript
import { GenEnv } from "./env";
import { Type, FunctionType, ObjectType, Parameter } from "./types";
import * as types from "./types";
export declare function functionParamsDef(env: GenEnv, params: Parameter[]): void;
export declare function unionWith(t: Type, ...ts: Type[]): Type;
export declare const undefinedType: Type;
export declare const nullType: Type;
export declare function functionReturnDef(env: GenEnv, type: types.ReturnType | undefined): void;
export declare function functionDef(env: GenEnv, item: FunctionType): void;
export declare function objectDef(env: GenEnv, item: ObjectType): void;
export declare function typeDef(env: GenEnv, item: Type, addParens?: boolean): void;