@wikicasa-dev/utilities 1.0.10 → 1.0.12

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.
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Inverts the keys with the value of the given object
3
+ */
4
+ export type FlatInvert<T extends Record<PropertyKey, string | number>> = {
5
+ [K in keyof T as `${T[K]}`]: Extract<K, string | number>;
6
+ };
@@ -1,4 +1,4 @@
1
- import { FlatInvert } from '@wikicasa-dev/types';
1
+ import { FlatInvert } from 'types/ObjectUtilsTypes';
2
2
 
3
3
  export declare function shallowCopyObjectTo(from: Record<string, any> | undefined, to: Record<string, any>): void;
4
4
  export declare function isEmptyObject(obj: any): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/utilities",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Wikicasa frontend utilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",