UNPKG

ts-randomizer

Version:

A tool to create random data by type parameters

10 lines (9 loc) 402 B
import * as ts from 'typescript'; import { TypeParamsMap, TypeDescription } from '../../types'; export type DescriptionFactory<T> = (node: T, typeArgumentsMap?: TypeParamsMap) => TypeDescription; /** * Generates description for node type * @param node Target node * @param typeArgumentsMap Node type arguments relations */ export declare const generateNodeDescription: DescriptionFactory<ts.Node>;