schema-components - v3.7.0
    Preparing search index...

    Function toRecord

    • Convert a known object to Record<string, unknown> by iterating Object.entries. This avoids the cast that TypeScript's object type (no index signature) otherwise forces.

      Only use this when you already know value is an object — it does not perform a type guard.

      Parameters

      • value: object

      Returns Record<string, unknown>