UNPKG

dilswer

Version:

Blazingly fast data validation library with TypeScript integration.

19 lines (18 loc) 658 B
import type { AnyType } from "../data-types/type-types"; import type { ExternalTypeImport, TsParsingOptions } from "./parser-options"; export declare class ExternalTypeImportProxy { private ext; private _resolvedName; private _importName; constructor(ext: ExternalTypeImport); get path(): string | undefined; get typeName(): string; get originalName(): string | undefined; get valueImport(): boolean | undefined; get importName(): string; } /** * Generates TypeScript type definition (as a string) from a * DataType. */ export declare const toTsType: (dataType: AnyType, options?: Partial<TsParsingOptions>) => string;