@kwiz/common 1.0.192 → 1.0.193

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.
@@ -24,3 +24,11 @@ export interface iFileData {
24
24
  }
25
25
  /** allow using Omit on complex join types */
26
26
  export type DeepOmit<T, K extends keyof T> = T extends any ? Omit<T, K> : never;
27
+ /** return a success flag with either error message or the value */
28
+ export type apiResultType<T> = {
29
+ success: false;
30
+ error: string;
31
+ } | {
32
+ success: true;
33
+ value: T;
34
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwiz/common",
3
- "version": "1.0.192",
3
+ "version": "1.0.193",
4
4
  "description": "KWIZ common utilities and helpers for M365 platform",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/esm/index.js",