Skip to the content.

Function: getRequiredField()

getRequiredField(obj, field, expectedType): unknown

Defined in: performance.ts:123

Optimized field access with type checking.

Parameters

obj

Readonly<UnknownRecord>

field

string

expectedType

"string" | "number" | "boolean" | "object"

Returns

unknown