UNPKG

macoolka-type-model

Version:

`macoolka-type-model` is a library for define model in TypeScript. It easily build a type contain field and method to your Application. It provide a generation model for type and validition

22 lines (21 loc) 591 B
/** * @file */ import { MModule, MInterface, MTypeAlias } from '../models/Module'; import { TSBuild } from './types'; import { ReaderNode } from 'macoolka-app/lib/Node'; export declare type Maybe<T> = null | undefined | T; export declare type IOType = MInterface | MTypeAlias; /** * topological sort IOType in MModule * @desczh * IOType 拓扑排序 * @since 0.2.0 */ export declare const topologicalSort: (ignoreNames: Array<string>) => ReaderNode<MModule, IOType[]>; /** * TSBuild instance with IO * @since 0.2.0 */ export declare const buildTs: TSBuild; export default buildTs;