Update package versions for node 18
Some checks failed
continuous-integration/drone Build is failing
Some checks failed
continuous-integration/drone Build is failing
This commit is contained in:
@@ -45,7 +45,7 @@ export type ParameterizedCallback<T> = ((arg: T) => any)
|
||||
export type KeyValue<T> = {key: string, value: T}
|
||||
|
||||
/** Simple helper method to verify that a key is a keyof some object. */
|
||||
export function isKeyof<T>(key: unknown, obj: T): key is keyof T {
|
||||
export function isKeyof<T extends object>(key: unknown, obj: T): key is keyof T {
|
||||
if ( typeof key !== 'string' && typeof key !== 'symbol' ) {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user