lean4-code-actions
Version:
Refactorings and snippets for Lean 4
12 lines (7 loc) • 427 B
text/typescript
import { SafeParseReturnType } from 'zod/lib/types'
import { Mapper, MapperP, MapperTwoSym } from './Mapper'
import { Result } from './Result'
export type Parser<In, Out, Err> = Mapper<In, Result<Out, Err>>
export type ParserP<In, Out, Err> = MapperP<In, Result<Out, Err>>
export type ParserTwoSym<In, Out, Err> = MapperTwoSym<In, Result<Out, Err>>
export type ZodParser<In, Out> = Mapper<In, SafeParseReturnType<In, Out>>