@kwiz/common 1.0.245 → 1.0.246

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.
@@ -18,10 +18,23 @@ export interface ITypesDisplayInfo<ValueType> {
18
18
  fabricIconName?: string;
19
19
  }
20
20
  export type DateOrNull = Date | null;
21
+ /** @deprecated prefer using iFileData2 to avoid exessive memory usage converting large files from base64 to array buffer */
21
22
  export interface iFileData {
22
23
  filename: string;
23
24
  base64: string;
24
25
  }
26
+ interface iFileData64 {
27
+ filename: string;
28
+ base64: string;
29
+ buffer?: never;
30
+ }
31
+ interface iFileDataBuffer {
32
+ filename: string;
33
+ buffer: ArrayBuffer;
34
+ base64?: never;
35
+ }
36
+ /** use if you support either base64 or ArrayBuffer */
37
+ export type tFileDataV2 = iFileData64 | iFileDataBuffer;
25
38
  /** allow using Omit on complex join types */
26
39
  export type DeepOmit<T, K extends keyof T> = T extends any ? Omit<T, K> : never;
27
40
  /** return a success flag with either error message or the value */
@@ -35,3 +48,4 @@ export type apiResultType<T> = {
35
48
  export type DeepPartial<T> = {
36
49
  [P in keyof T]?: DeepPartial<T[P]>;
37
50
  };
51
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwiz/common",
3
- "version": "1.0.245",
3
+ "version": "1.0.246",
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",