Skip to content

Commit 99715f5

Browse files
committed
fix: reversed extends check
1 parent 5ddf7e3 commit 99715f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/types/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export type RemoveNever<Type> = {
8484
* Return a list of keys where the property value match the `DataType`.
8585
*/
8686
export type KeysWhere<Type, DataType, Key extends keyof Type = keyof Type> = Key extends PropertyKey
87-
? DataType extends Type[Key]
87+
? Type[Key] extends DataType
8888
? Key
8989
: never
9090
: never;

0 commit comments

Comments
 (0)