@rg-dev/stdlib 1.0.17 → 1.0.18

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.
@@ -13,7 +13,7 @@ type MaybeFunction = ((...args: any) => void) | undefined;
13
13
  declare class Optional<T> {
14
14
  private value;
15
15
  private constructor();
16
- static of<T>(val: T | undefined): Optional<T>;
16
+ static of<T>(val: T | any): Optional<T>;
17
17
  orElseThrow(msg?: string): T;
18
18
  setValue(newValue: T): this;
19
19
  getValue(): T | undefined;
@@ -13,7 +13,7 @@ type MaybeFunction = ((...args: any) => void) | undefined;
13
13
  declare class Optional<T> {
14
14
  private value;
15
15
  private constructor();
16
- static of<T>(val: T | undefined): Optional<T>;
16
+ static of<T>(val: T | any): Optional<T>;
17
17
  orElseThrow(msg?: string): T;
18
18
  setValue(newValue: T): this;
19
19
  getValue(): T | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rg-dev/stdlib",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",