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 {