UNPKG

@markandrus/effect-derive

Version:

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

5 lines (4 loc) 262 B
import { type TypeNode } from 'ts-morph'; import { type Registry } from './Registry'; export type RegistryMatcher = (holeName: string, tyNode: TypeNode) => string[] | undefined; export declare function createRegistryMatcher(registry: Registry): RegistryMatcher;