Skip to content

Commit b4d7c25

Browse files
committed
feat: exclude item.label from autoLabel parameter type
1 parent 05cf123 commit b4d7c25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/enum.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export interface EnumInterface {
208208
| boolean
209209
| ((options: {
210210
// eslint-disable-next-line @typescript-eslint/no-explicit-any
211-
item: EnumItemClass<any, string, any, any>;
211+
item: Omit<EnumItemClass<any, string, any, any>, 'label'>;
212212
// eslint-disable-next-line @typescript-eslint/no-explicit-any
213213
labelPrefix: any;
214214
}) => string);

0 commit comments

Comments
 (0)