@waiting/shared-types
Advanced tools
Comparing version 23.12.0 to 23.13.0
@@ -12,11 +12,11 @@ export interface Func { | ||
*/ | ||
export type MethodType<ArgsType extends unknown[] = any[], ReturnType = any | Promise<any>, TThis extends unknown = void> = (this: TThis, ...input: ArgsType) => ReturnType; | ||
export type MethodType<ArgsType extends unknown[] = any[], ReturnType = any | Promise<any>, TThis = any> = (this: TThis, ...input: ArgsType) => ReturnType; | ||
/** | ||
* ReturnType is unknown | ||
*/ | ||
export type MethodTypeUnknown<ArgsType extends any[] = any[], ReturnType extends unknown = unknown, TThis extends unknown = void> = (this: TThis, ...input: ArgsType) => ReturnType; | ||
export type MethodTypeUnknown<ArgsType extends any[] = any[], ReturnType = unknown, TThis = any> = (this: TThis, ...input: ArgsType) => ReturnType; | ||
/** | ||
* ReturnType is Promise<unknown> | ||
*/ | ||
export type AsyncMethodType<ArgsType extends any[] = any[], ResultType extends unknown = unknown, TThis extends unknown = void> = (this: TThis, ...input: ArgsType) => Promise<ResultType>; | ||
export type AsyncMethodType<ArgsType extends any[] = any[], ResultType = unknown, TThis = any> = (this: TThis, ...input: ArgsType) => Promise<ResultType>; | ||
//# sourceMappingURL=func.d.ts.map |
{ | ||
"name": "@waiting/shared-types", | ||
"author": "waiting", | ||
"version": "23.12.0", | ||
"version": "23.13.0", | ||
"description": "shared typescript types", | ||
@@ -70,3 +70,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "9218536c22fdd89084cd5ed86eebefaf6eddc670" | ||
"gitHead": "ddbb204bc43beb1926179b50eb9d9fb73c0da3ba" | ||
} |
@@ -20,3 +20,3 @@ /* eslint-disable @typescript-eslint/no-redundant-type-constituents */ | ||
ReturnType = any | Promise<any>, | ||
TThis extends unknown = void, | ||
TThis = any, | ||
> = (this: TThis, ...input: ArgsType) => ReturnType | ||
@@ -28,4 +28,4 @@ /** | ||
ArgsType extends any[] = any[], | ||
ReturnType extends unknown = unknown, | ||
TThis extends unknown = void, | ||
ReturnType = unknown, | ||
TThis = any, | ||
> = (this: TThis, ...input: ArgsType) => ReturnType | ||
@@ -38,5 +38,5 @@ | ||
ArgsType extends any[] = any[], | ||
ResultType extends unknown = unknown, | ||
TThis extends unknown = void, | ||
ResultType = unknown, | ||
TThis = any, | ||
> = (this: TThis, ...input: ArgsType) => Promise<ResultType> | ||
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76641