From f6623f9becdcd9e7f0654baef363e11535b9bcbc Mon Sep 17 00:00:00 2001 From: Aleksandr Kraiz Date: Mon, 28 Nov 2022 18:26:34 +0400 Subject: [PATCH] isKeyOfObject fix --- package.json | 2 +- src/utils/typeHelpers.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6380557..1c363db 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.15.17", + "version": "0.15.18", "description": "Orion Protocol SDK", "main": "./lib/esm/index.js", "module": "./lib/esm/index.js", diff --git a/src/utils/typeHelpers.ts b/src/utils/typeHelpers.ts index fde9b1f..eb901b7 100644 --- a/src/utils/typeHelpers.ts +++ b/src/utils/typeHelpers.ts @@ -26,7 +26,7 @@ export function isUnknownObject(x: unknown): x is { return x !== null && typeof x === 'object'; } -export function isKeyOfObject>( +export function isKeyOfObject( key: string | number | symbol, obj: T, ): key is keyof T {