UNPKG

@markandrus/effect-derive

Version:

Derive Covariant (Functor), Foldable, and Traversable instances, as well as base functors, for algebraic data types (ADTs)

22 lines (21 loc) 1.31 kB
export type IsTypeImport = boolean; export declare class OutFile { readonly packages: Set<string>; readonly packageAsteriskImports: Map<string, Map<string, boolean>>; readonly packageDefaultImports: Map<string, Map<string, boolean>>; readonly packageImports: Map<string, Map<string, [alias: string | undefined, boolean]>>; readonly locals: Set<string>; readonly localDefaultImports: Map<string, Map<string, boolean>>; readonly localImports: Map<string, Map<string, [alias: string | undefined, boolean]>>; declarations: string; addPackageAsteriskImport(module: string, alias: string, isTypeImport?: boolean): this; addPackageDefaultImport(module: string, alias: string, isTypeImport?: boolean): this; addPackageImport(module: string, imported: string, isTypeImport?: boolean): this; addPackageImport(module: string, imported: string, alias?: string, isTypeImport?: boolean): this; addLocalDefaultImport(module: string, alias: string, isTypeImport?: boolean): this; addLocalImport(module: string, imported: string, isTypeImport?: boolean): this; addLocalImport(module: string, imported: string, alias?: string, isTypeImport?: boolean): this; addDeclarations(declarations: string): this; merge(other: OutFile): this; toString(): string; }