IF Commons GitHub

governance/brand

Written to: 1 requirement: 0 proved, 0 partly, 0 failing, 1 with no test recorded. 0002-planning-core FR-009

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.

Source: commons/planning/src/governance/brand.ts

0 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

governance.brandfunctionno test imports it
function 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 it
function 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.

Titles, headings, exports, tables, columns and requirements. Esc closes.