governance.brandfunctionno test imports itfunction brand<T, B extends string>(value: T): Brand<T, B>A value of T named a B: the single cast of the library, called only by the function that has validated the value.
The one place a brand is put on a value: a smart constructor checks a value and then calls brand, so that an id, an instant or a day exists only as the result of its constructor.
governance.brandfunctionno test imports itfunction brand<T, B extends string>(value: T): Brand<T, B>A value of T named a B: the single cast of the library, called only by the function that has validated the value.
brandfunctionno test imports itfunction brand<T, B extends string>(value: T): Brand<T, B>A value of T named a B: the single cast of the library, called only by the function that has validated the value.