@etsoo/shared 1.2.43 → 1.2.44

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2004-2024 ETSOO ® (亿速思维 ®), https://www.etsoo.com
3
+ Copyright (c) 2004-2024 ETSOO ® (亿速思维 ®), https://etsoo.com, https://etsoo.nz
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,3 @@
1
- /// <reference lib="dom" />
2
1
  import { DataTypes } from './DataTypes';
3
2
  import { ErrorData, ErrorType } from './types/ErrorData';
4
3
  import { FormDataFieldValue, IFormData } from './types/FormData';
@@ -148,7 +148,7 @@ export declare namespace Utils {
148
148
  * @param args Arguments
149
149
  * @returns Result
150
150
  */
151
- const getResult: <R, T = R | DataTypes.Func<R>>(input: T, ...args: T extends DataTypes.Func<R> ? Parameters<T> : []) => T extends DataTypes.Func<R> ? ReturnType<T> : T;
151
+ const getResult: <R, T = R | DataTypes.Func<R>>(input: T, ...args: T extends DataTypes.Func<R> ? Parameters<typeof input> : never | []) => T extends DataTypes.Func<R> ? ReturnType<T> : T;
152
152
  /**
153
153
  * Get time zone
154
154
  * @returns Timezone
@@ -1,4 +1,3 @@
1
- /// <reference lib="dom" />
2
1
  import { DataTypes } from './DataTypes';
3
2
  import { ErrorData, ErrorType } from './types/ErrorData';
4
3
  import { FormDataFieldValue, IFormData } from './types/FormData';
@@ -148,7 +148,7 @@ export declare namespace Utils {
148
148
  * @param args Arguments
149
149
  * @returns Result
150
150
  */
151
- const getResult: <R, T = R | DataTypes.Func<R>>(input: T, ...args: T extends DataTypes.Func<R> ? Parameters<T> : []) => T extends DataTypes.Func<R> ? ReturnType<T> : T;
151
+ const getResult: <R, T = R | DataTypes.Func<R>>(input: T, ...args: T extends DataTypes.Func<R> ? Parameters<typeof input> : never | []) => T extends DataTypes.Func<R> ? ReturnType<T> : T;
152
152
  /**
153
153
  * Get time zone
154
154
  * @returns Timezone
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/shared",
3
- "version": "1.2.43",
3
+ "version": "1.2.44",
4
4
  "description": "TypeScript shared utilities and functions",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -58,8 +58,8 @@
58
58
  "@types/lodash.isequal": "^4.5.8",
59
59
  "jest": "^29.7.0",
60
60
  "jest-environment-jsdom": "^29.7.0",
61
- "ts-jest": "^29.1.4",
62
- "typescript": "^5.4.5"
61
+ "ts-jest": "^29.2.4",
62
+ "typescript": "^5.5.4"
63
63
  },
64
64
  "dependencies": {
65
65
  "lodash.isequal": "^4.5.0"