@sidex/types 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/builtins.ts +1 -1
- package/src/nominal.ts +3 -1
package/package.json
CHANGED
package/src/builtins.ts
CHANGED
package/src/nominal.ts
CHANGED
|
@@ -6,7 +6,9 @@ declare const SIDEX_PATH_SYMBOL: unique symbol
|
|
|
6
6
|
/**
|
|
7
7
|
* A nominal type based on `T` and identified by it's Sidex path `P`.
|
|
8
8
|
*/
|
|
9
|
-
export type Nominal<T, P extends string> = T & {
|
|
9
|
+
export type Nominal<T, P extends string> = T & {
|
|
10
|
+
[SIDEX_PATH_SYMBOL]: { [key in P]: null }
|
|
11
|
+
}
|
|
10
12
|
|
|
11
13
|
/**
|
|
12
14
|
* The structural type of a nominal type `T`.
|