This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

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 {};