From 394f5f86d15a9bb319276518d36cb560d7cb6322 Mon Sep 17 00:00:00 2001 From: timiyay Date: Sat, 1 Oct 2022 11:12:39 +1000 Subject: [PATCH] fix(typescript): address warning with objectKeys --- lib/typings/common-types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/typings/common-types.ts b/lib/typings/common-types.ts index 2c1c15cb8..8d8c68a3b 100644 --- a/lib/typings/common-types.ts +++ b/lib/typings/common-types.ts @@ -61,7 +61,7 @@ export function assertSingleKey( /** * Typing wrapper around Object.keys() */ -export function objectKeys(object: T) { +export function objectKeys(object: T) { return Object.keys(object) as (keyof T)[]; }