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

Wrappable

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

A Wrappable structure has the method wrap.

@example
import type { Wrappable } from "./wrappable.ts";
import * as O from "./option.ts";

// Example with Option wrappable
const wrapped = O.WrappableOption.wrap(42);
console.log(wrapped); // Some(42)
interface Wrappable <U extends Kind> extends Hold<U> {
readonly wrap: <A, B = never, C = never, D = unknown, E = unknown>(a: A) => $<U, [A, B, C], [D], [E]>;
}

§Type Parameters

§
U extends Kind
[src]

§Extends

§Properties

§
readonly wrap: <A, B = never, C = never, D = unknown, E = unknown>(a: A) => $<U, [A, B, C], [D], [E]>
[src]