Comparing version 2.1.0 to 2.1.1-beta.1
import { EnumValuesArray } from './enum-values'; | ||
import type { BooleanFirstOptionConfig, ColumnFilterItem, EnumInit, EnumItemOptionData, EnumItemOptions, EnumKey, EnumValue, IEnumValues, MenuItemOption, ObjectFirstOptionConfig, OptionsConfig, ValueTypeFromSingleInit } from './types'; | ||
declare global { | ||
export interface EnumExtension<T extends EnumInit<K, V>, K extends EnumKey<T> = EnumKey<T>, V extends EnumValue = ValueTypeFromSingleInit<T[K], K>> { | ||
} | ||
} /** | ||
* **EN:** Enum collection extension base class, used to extend the Enums | ||
* | ||
* **CN:** 枚举集合扩展基类,用于扩展枚举 | ||
*/ | ||
/** | ||
* **EN:** Enum collection extension base class, used to extend the Enums | ||
* | ||
* **CN:** 枚举集合扩展基类,用于扩展枚举 | ||
*/ | ||
export declare class EnumExtensionClass<T extends EnumInit<K, V>, K extends EnumKey<T> = EnumKey<T>, V extends EnumValue = ValueTypeFromSingleInit<T[K], K>> implements EnumExtension<T, K, V> { | ||
@@ -12,0 +9,0 @@ } |
import { EnumItemClass } from './enum-item'; | ||
import { EnumValuesArray } from './enum-values'; | ||
import { KEYS, VALUES } from './index'; | ||
/** | ||
* **EN:** Enum collection extension base class, used to extend the Enums | ||
* | ||
* **CN:** 枚举集合扩展基类,用于扩展枚举 | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/no-extraneous-class | ||
@@ -5,0 +10,0 @@ export class EnumExtensionClass { |
@@ -67,1 +67,5 @@ import type { EnumInit, EnumInitOptions, EnumItemOptions, EnumKey, EnumValue, IEnum, StandardEnumInit, ValueTypeFromSingleInit } from './types'; | ||
export declare const defaultLocalize: NonNullable<EnumItemOptions['localize']>; | ||
declare global { | ||
export interface EnumExtension<T extends EnumInit<K, V>, K extends EnumKey<T> = EnumKey<T>, V extends EnumValue = ValueTypeFromSingleInit<T[K], K>> { | ||
} | ||
} |
import { EnumValuesArray } from './enum-values'; | ||
import type { BooleanFirstOptionConfig, ColumnFilterItem, EnumInit, EnumItemOptionData, EnumItemOptions, EnumKey, EnumValue, IEnumValues, MenuItemOption, ObjectFirstOptionConfig, OptionsConfig, ValueTypeFromSingleInit } from './types'; | ||
declare global { | ||
export interface EnumExtension<T extends EnumInit<K, V>, K extends EnumKey<T> = EnumKey<T>, V extends EnumValue = ValueTypeFromSingleInit<T[K], K>> { | ||
} | ||
} /** | ||
* **EN:** Enum collection extension base class, used to extend the Enums | ||
* | ||
* **CN:** 枚举集合扩展基类,用于扩展枚举 | ||
*/ | ||
/** | ||
* **EN:** Enum collection extension base class, used to extend the Enums | ||
* | ||
* **CN:** 枚举集合扩展基类,用于扩展枚举 | ||
*/ | ||
export declare class EnumExtensionClass<T extends EnumInit<K, V>, K extends EnumKey<T> = EnumKey<T>, V extends EnumValue = ValueTypeFromSingleInit<T[K], K>> implements EnumExtension<T, K, V> { | ||
@@ -12,0 +9,0 @@ } |
@@ -7,2 +7,7 @@ "use strict"; | ||
const index_1 = require("./index"); | ||
/** | ||
* **EN:** Enum collection extension base class, used to extend the Enums | ||
* | ||
* **CN:** 枚举集合扩展基类,用于扩展枚举 | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/no-extraneous-class | ||
@@ -9,0 +14,0 @@ class EnumExtensionClass { |
@@ -67,1 +67,5 @@ import type { EnumInit, EnumInitOptions, EnumItemOptions, EnumKey, EnumValue, IEnum, StandardEnumInit, ValueTypeFromSingleInit } from './types'; | ||
export declare const defaultLocalize: NonNullable<EnumItemOptions['localize']>; | ||
declare global { | ||
export interface EnumExtension<T extends EnumInit<K, V>, K extends EnumKey<T> = EnumKey<T>, V extends EnumValue = ValueTypeFromSingleInit<T[K], K>> { | ||
} | ||
} |
{ | ||
"name": "enum-plus", | ||
"version": "2.1.0", | ||
"version": "2.1.1-beta.1", | ||
"description": "A drop-in replacement library for enum, tiny and powerful, like native enum but much more than that", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
190141
37
2327
0
1
2