From 9ff0c2c6933b6a49f0c24b759ad0cfe5d88b4abd Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Sat, 1 May 2021 23:37:26 +0200 Subject: [PATCH] Update utils.ts --- src/util/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/utils.ts b/src/util/utils.ts index 0b64e826f..d2c0a016d 100644 --- a/src/util/utils.ts +++ b/src/util/utils.ts @@ -208,7 +208,7 @@ export function validateSlashCommands( // Typescript is not so good as we developers so we need this little utility function to help it out // Taken from https://fettblog.eu/typescript-hasownproperty/ /** TS save way to check if a property exists in an object */ -export function hasOwnProperty( +export function hasOwnProperty( obj: T, prop: Y, ): obj is T & Record {