Skip to content

Commit

Permalink
Update Identifier<T> to be keyof T instead of any string (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhorner authored Aug 26, 2024
1 parent bdd6c0e commit b4abd7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type BaseCompareOptions = {

export type IdentifierFn<T> = (value: T) => unknown;

export type Identifier<T> = IdentifierFn<T> | string | number;
export type Identifier<T> = IdentifierFn<T> | keyof T | number;

export type ParsedNumber = number;

Expand Down

0 comments on commit b4abd7c

Please sign in to comment.