@omnia/fx-models 8.0.113-dev → 8.0.114-dev

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/Exposes.d.ts CHANGED
@@ -103,6 +103,7 @@ export * from "./RollupMetricSettings";
103
103
  export * from "./ChromeLayoutDefinition";
104
104
  export * from "./NullOf";
105
105
  export * from "./NotNullish";
106
+ export * from "./ValueOf";
106
107
  export * from "./ux";
107
108
  export * from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
108
109
  export * from "./admin";
package/Exposes.js CHANGED
@@ -109,6 +109,7 @@ tslib_1.__exportStar(require("./RollupMetricSettings"), exports);
109
109
  tslib_1.__exportStar(require("./ChromeLayoutDefinition"), exports);
110
110
  tslib_1.__exportStar(require("./NullOf"), exports);
111
111
  tslib_1.__exportStar(require("./NotNullish"), exports);
112
+ tslib_1.__exportStar(require("./ValueOf"), exports);
112
113
  //************************************************************************************ */
113
114
  // End of file exports
114
115
  //************************************************************************************ */
package/NullOf.d.ts CHANGED
@@ -1,2 +1,5 @@
1
1
  export type NullOfType<T> = T extends null ? T : T | null;
2
+ /**
3
+ * @deprecated This will be removed, use valueOf instead.
4
+ */
2
5
  export declare function nullOf<T>(): NullOfType<T>;
package/NullOf.js CHANGED
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.nullOf = void 0;
4
+ /**
5
+ * @deprecated This will be removed, use valueOf instead.
6
+ */
4
7
  function nullOf() {
5
8
  return null;
6
9
  }
package/ValueOf.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ type NullOfType<T> = T extends null ? T : T | null;
2
+ export declare function valueOf<T>(value: T): NullOfType<T>;
3
+ export {};
package/ValueOf.js ADDED
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.valueOf = void 0;
4
+ function valueOf(value) {
5
+ return value;
6
+ }
7
+ exports.valueOf = valueOf;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.113-dev",
4
+ "version": "8.0.114-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"