@ceale/util 1.22.0 → 1.22.1

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/dist/cjs/index.js CHANGED
@@ -479,5 +479,5 @@ var Enum3 = (definition) => {
479
479
  values: { enumerable: false },
480
480
  includes: { enumerable: false }
481
481
  });
482
- return Object.freeze(Object.assign(definition, methods));
482
+ return Object.freeze(Object.assign(methods, definition));
483
483
  };
package/dist/esm/index.js CHANGED
@@ -441,7 +441,7 @@ var Enum3 = (definition) => {
441
441
  values: { enumerable: false },
442
442
  includes: { enumerable: false }
443
443
  });
444
- return Object.freeze(Object.assign(definition, methods));
444
+ return Object.freeze(Object.assign(methods, definition));
445
445
  };
446
446
  export {
447
447
  ClassUtil,
@@ -15,7 +15,7 @@ export type EnumOf<T extends Record<string, any>> = Extract<T[keyof T], string |
15
15
  * // includes(value: any): boolean
16
16
  * // }
17
17
  * */
18
- export declare const Enum: <const T extends Record<string, string | number>>(definition: T) => Readonly<T & {
19
- values: () => T[keyof T][];
20
- includes: (value: any) => value is T[keyof T];
21
- }>;
18
+ export declare const Enum: <const T extends Record<string, string | number>>(definition: T) => Readonly<{
19
+ values(): T[keyof T][];
20
+ includes(value: any): value is T[keyof T];
21
+ } & T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ceale/util",
3
- "version": "1.22.0",
3
+ "version": "1.22.1",
4
4
  "author": "Ceale",
5
5
  "description": "小工具集",
6
6
  "repository": {