Function: createNullPrototypeObject()
function createNullPrototypeObject<T>(shape?: T): T;
Defined in: shared/utils/objectCreation.ts:23
Creates a null-prototype object with a specific compile-time shape.
Type Parametersโ
Tโ
T extends object
Parametersโ
shape?โ
T
Returnsโ
T
Remarksโ
This centralizes the only unsafe assertion needed for prototype-pollution hardening so callers do not need their own eslint-disable comments.