export function hasOwnKey(object: T, key: PropertyKey): key is keyof T { return Object.hasOwn(object, key); }