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

Bind

import type { Bind } from "https://raw.githubusercontent.com/baetheus/fun/main/flatmappable.ts";

The return type for the createBind function on Flatmappable. Useful to reduce type inference in documentation.

type Bind<U extends Kind> = <N extends string, A, I, J = never, K = never, L = unknown, M = unknown>(name: Exclude<N, keyof A>, faui: (a: A) => $<U, [I, J, K], [L], [M]>) => <B = never, C = never, D extends L = L>(ua: $<U, [A, B, C], [D], [M]>) => $<U, [readonly [K in keyof A | N]: K extends keyof A ? A[K] : I, B | J, C | K], [D & L], [M]>;

§Type Parameters

§
U extends Kind
[src]

§Type

§
<N extends string, A, I, J = never, K = never, L = unknown, M = unknown>(name: Exclude<N, keyof A>, faui: (a: A) => $<U, [I, J, K], [L], [M]>) => <B = never, C = never, D extends L = L>(ua: $<U, [A, B, C], [D], [M]>) => $<U, [readonly [K in keyof A | N]: K extends keyof A ? A[K] : I, B | J, C | K], [D & L], [M]>
[src]