Internal
An interface for creating branded types, which create a more specific and unique data type with greater clarity and specificity,
The real type to use (e.g. string, boolean, etc.)
string
boolean
The name of this type (e.g. path, sourceRef, etc.)
path
sourceRef
type Path = Branded<string, "path">function getSelfPath(path: Path): Delta { // ...} Copy
type Path = Branded<string, "path">function getSelfPath(path: Path): Delta { // ...}
https://egghead.io/blog/using-branded-types-in-typescript
An interface for creating branded types, which create a more specific and unique data type with greater clarity and specificity,