@oliversalzburg/js-utils 0.0.23-dev.3 → 0.0.23-dev.4
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/nil.d.ts +2 -0
- package/nil.js.map +1 -1
- package/package.json +1 -1
package/nil.d.ts
CHANGED
|
@@ -2,11 +2,13 @@ import { ConstructorOf } from "./core.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* When you want to normalize away `null` | `undefined`, or deal
|
|
4
4
|
* with either type through a consistent interface.
|
|
5
|
+
* @group Types
|
|
5
6
|
*/
|
|
6
7
|
export type Nil = null | undefined;
|
|
7
8
|
/**
|
|
8
9
|
* A type that could be either what you want, or `Nil`.
|
|
9
10
|
* @typeParam T - The type that should be made nillable.
|
|
11
|
+
* @group Types
|
|
10
12
|
*/
|
|
11
13
|
export type Maybe<T> = T | Nil;
|
|
12
14
|
/**
|
package/nil.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nil.js","sourceRoot":"","sources":["../source/nil.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nil.js","sourceRoot":"","sources":["../source/nil.ts"],"names":[],"mappings":"AAgBA;;;;;GAKG;AACH,MAAM,UAAU,KAAK,CAAI,OAAiB;IACxC,OAAO,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,SAAS,CAAC;AACnD,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,EAAE,CAAI,OAAiB,EAAE,YAA8B;IACrE,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,OAAO,YAAY,YAAY,CAAC;AAC5D,CAAC;AAED;;;GAGG;AACH,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IAC3C;;;OAGG;IACH,YAAY,OAAO,GAAG,sBAAsB;QAC1C,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF;AAED;;;;;;GAMG;AACH,MAAM,UAAU,SAAS,CAAI,OAAiB,EAAE,YAAqB;IACnE,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE;QAClB,MAAM,IAAI,kBAAkB,CAAC,YAAY,CAAC,CAAC;KAC5C;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAI,OAAiB;IAC/C,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE;QAClB,MAAM,IAAI,kBAAkB,EAAE,CAAC;KAChC;AACH,CAAC"}
|
package/package.json
CHANGED