20 lines
603 B
TypeScript
20 lines
603 B
TypeScript
import { Type } from "./type";
|
|
import { Kind } from "./kind";
|
|
type ToTypescriptOpts = {
|
|
useReference?: {
|
|
[ref: string]: Type<any>;
|
|
};
|
|
indent: string;
|
|
indentLevel: number;
|
|
};
|
|
export type TypescriptUserOpts = Partial<ToTypescriptOpts> & {
|
|
assignToType?: string;
|
|
};
|
|
type SingleConversionWithOpts = [type: Kind, userOpts: TypescriptUserOpts];
|
|
type SingleConversion = [type: Kind];
|
|
type MultipleConversion = [types: {
|
|
[name: string]: Kind;
|
|
}];
|
|
export declare function toTypescript(...args: SingleConversion | SingleConversionWithOpts | MultipleConversion): string;
|
|
export {};
|