Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Tap

import type { Tap } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/failable.ts";

The return type of createTap for Failable. Useful for reducing type inference in the docs.

type Tap<U extends Kind> = <A, B>(onSuccess: (value: A) => void, onFailure: (value: B) => void) => <C = never, D = unknown, E = unknown>(ua: $<U, [A, B, C], [D], [E]>) => $<U, [A, B, C], [D], [E]>;

§Type Parameters

§
U extends Kind
[src]

§Type

§
<A, B>(onSuccess: (value: A) => void, onFailure: (value: B) => void) => <C = never, D = unknown, E = unknown>(ua: $<U, [A, B, C], [D], [E]>) => $<U, [A, B, C], [D], [E]>
[src]