Change Object.hasOwn to Object.prototype.hasOwnProperty in isEntityKind

This commit is contained in:
2026-03-31 06:00:17 +02:00
parent 1ec200921f
commit 3da8a5116a

View File

@@ -284,7 +284,7 @@ export const ENTITY_REGISTRY: { [K in EntityKind]: EntityRegistryEntry<Extract<E
};
export function isEntityKind(value: unknown): value is EntityKind {
return typeof value === "string" && Object.hasOwn(ENTITY_REGISTRY, value);
return typeof value === "string" && Object.prototype.hasOwnProperty.call(ENTITY_REGISTRY, value);
}
export function getEntityRegistryEntry<K extends EntityKind>(kind: K): EntityRegistryEntry<Extract<EntityInstance, { kind: K }>> {