UNPKG

coldstitch

Version:

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

17 lines (16 loc) 582 B
import { type Code } from "../code"; import { CustomFormatter, ImportResolver, TypeRef } from "../types"; type TypeRefTraits = { packageName?: string; }; interface JavaTypeRef extends TypeRef { qualifiedName: string; } export declare function typeRef(typeName: string, { packageName }?: TypeRefTraits): JavaTypeRef; type ObjOptions = { formatter?: CustomFormatter; }; export declare function mapOf<T extends object>(value: T, options?: ObjOptions): Code; export declare function listOf<T>(value: T[]): Code; export declare function imports(): ImportResolver; export {};