From b4abd7cffbed073b2145bbbc4afd80979191b70b Mon Sep 17 00:00:00 2001 From: TJ Horner Date: Mon, 26 Aug 2024 02:25:00 -0700 Subject: [PATCH] Update `Identifier` to be `keyof T` instead of any `string` (#132) --- src/types/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/index.ts b/src/types/index.ts index 45442f4..d6c50b1 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -17,7 +17,7 @@ export type BaseCompareOptions = { export type IdentifierFn = (value: T) => unknown; -export type Identifier = IdentifierFn | string | number; +export type Identifier = IdentifierFn | keyof T | number; export type ParsedNumber = number;