UNPKG

coldstitch

Version:

A code generation library, that helps you craft code snippets in code for multiple languages

19 lines (18 loc) 665 B
import { type Code } from "../code"; import { CustomFormatter, ImportResolver, TypeRef } from "../types"; type TypeRefTraits = { packageName?: string; alias?: string; }; interface KotlinTypeRef extends TypeRef { qualifiedName: string; alias?: string; } export declare function typeRef(typeName: string, { packageName, alias }?: TypeRefTraits): KotlinTypeRef; type FormatOptions = { formatter?: CustomFormatter; }; export declare function mapOf<T extends object>(value: T, options?: FormatOptions): Code; export declare function arrayOf<T>(value: T[], options?: FormatOptions): Code; export declare function imports(): ImportResolver; export {};