import { make } from "https://deno.land/x/actionify@0.3.0/src/deps/types.ts";
Produces a Brander<B>
, given a brand type B
. This simply returns
identity
but relies on type inference to give the return type the correct
type.
Examples
Example 1
Example 1
type UserId = Brand<number, 'user'>;
const UserId = make<UserId>();
const myUserId = UserId(42);
Type Parameters
B extends AnyBrand