UNPKG

veffect

Version:

powerful TypeScript validation library built on the robust foundation of Effect combining exceptional type safety, high performance, and developer experience. Taking inspiration from Effect's functional principles, VEffect delivers a balanced approach tha

25 lines (23 loc) 789 B
import * as Cause from "../Cause.js" import { dual } from "../Function.js" import * as HashMap from "../HashMap.js" import * as List from "../List.js" import type * as Logger from "../Logger.js" import * as core from "./core.js" import * as _fiberId from "./fiberId.js" import * as fiberRefs from "./fiberRefs.js" /** @internal */ export const test = dual< <Message>(input: Message) => <Output>(self: Logger.Logger<Message, Output>) => Output, <Message, Output>(self: Logger.Logger<Message, Output>, input: Message) => Output >(2, (self, input) => self.log({ fiberId: _fiberId.none, logLevel: core.logLevelInfo, message: input, cause: Cause.empty, context: fiberRefs.empty(), spans: List.empty(), annotations: HashMap.empty(), date: new Date() }))