mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-17 00:31:34 +03:00
isKeyOfObject fix
This commit is contained in:
@@ -26,7 +26,7 @@ export function isUnknownObject(x: unknown): x is {
|
||||
return x !== null && typeof x === 'object';
|
||||
}
|
||||
|
||||
export function isKeyOfObject<K extends string | number | symbol, T extends Record<K, unknown>>(
|
||||
export function isKeyOfObject<T extends object>(
|
||||
key: string | number | symbol,
|
||||
obj: T,
|
||||
): key is keyof T {
|
||||
|
||||
Reference in New Issue
Block a user