import { getCombinable } from "https://deno.land/x/fun@v2.0.0/newtype.ts";
Retype an existing Combinable from an inner type to a Newtype.
Examples
Example 1
Example 1
import { Newtype, getCombinable } from "./newtype.ts";
import * as N from "./number.ts";
type Integer = Newtype<'Integer', number>;
const monoidInteger = getCombinable<Integer>(N.InitializableNumberSum);
Type Parameters
T extends AnyNewtype
Parameters
combinable: Combinable<ToValue<T>>