import { type newtype } from "https://deno.land/x/fun@v2.0.0-alpha.6/mod.ts";
const { From } = newtype;
Extracts the inner type value from a Newtype.
Examples
Example 1
Example 1
import type { Newtype, From } from "./newtype.ts";
type Integer = Newtype<'Integer', number>;
type InnerInteger = From<Integer>; // number