UNPKG

minauth

Version:

A TypeScript library for building authentication systems on top of the Mina blockchain and other zero-knowledge proofs solutions.

6 lines (5 loc) 259 B
import { Either } from 'fp-ts/lib/Either.js'; /** * Converts a failible string parse operation into an Either object. */ export declare const safeFromString: <Err, T>(ctor: (_: string) => T, onError: (_: unknown) => Err) => (inp: string) => Either<Err, T>;