ts-enum-util
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -406,3 +406,3 @@ /** | ||
*/ | ||
export declare type NumberEnumWrapper<T extends EnumLike<number, keyof T> = any> = EnumWrapper<number, any>; | ||
export declare type NumberEnumWrapper<T extends EnumLike<number, keyof T> = any> = EnumWrapper<number, T>; | ||
export declare namespace NumberEnumWrapper { | ||
@@ -428,3 +428,3 @@ /** | ||
*/ | ||
export declare type StringEnumWrapper<T extends EnumLike<string, keyof T> = any> = EnumWrapper<string, any>; | ||
export declare type StringEnumWrapper<T extends EnumLike<string, keyof T> = any> = EnumWrapper<string, T>; | ||
export declare namespace StringEnumWrapper { | ||
@@ -451,3 +451,3 @@ /** | ||
*/ | ||
export declare type MixedEnumWrapper<T extends EnumLike<number | string, keyof T> = any> = EnumWrapper<number | string, any>; | ||
export declare type MixedEnumWrapper<T extends EnumLike<number | string, keyof T> = any> = EnumWrapper<number | string, T>; | ||
export declare namespace MixedEnumWrapper { | ||
@@ -454,0 +454,0 @@ /** |
{ | ||
"name": "ts-enum-util", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "TypeScript Enum Utilities", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -120,3 +120,3 @@ /** | ||
*/ | ||
public static getCachedInstance(enumObj: any): EnumWrapper { | ||
public static getCachedInstance(enumObj: object): EnumWrapper { | ||
let result = EnumWrapper.instancesCache.get(enumObj); | ||
@@ -793,3 +793,3 @@ | ||
T extends EnumLike<number, keyof T> = any | ||
> = EnumWrapper<number, any>; | ||
> = EnumWrapper<number, T>; | ||
@@ -825,3 +825,3 @@ export namespace NumberEnumWrapper { | ||
T extends EnumLike<string, keyof T> = any | ||
> = EnumWrapper<string, any>; | ||
> = EnumWrapper<string, T>; | ||
@@ -858,3 +858,3 @@ export namespace StringEnumWrapper { | ||
T extends EnumLike<number | string, keyof T> = any | ||
> = EnumWrapper<number | string, any>; | ||
> = EnumWrapper<number | string, T>; | ||
@@ -861,0 +861,0 @@ export namespace MixedEnumWrapper { |
Sorry, the diff of this file is not supported yet
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
147969