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

    Function typeToKey

    • Map a schema type to the resolver key that handles it. Every WalkedField variant has a direct resolver key — exhaustive switch ensures new variants surface as a type error rather than silently falling through to "unknown".

      Parameters

      • type:
            | "string"
            | "number"
            | "boolean"
            | "object"
            | "null"
            | "enum"
            | "literal"
            | "array"
            | "tuple"
            | "record"
            | "union"
            | "discriminatedUnion"
            | "conditional"
            | "negation"
            | "file"
            | "never"
            | "unknown"

      Returns
          | "string"
          | "number"
          | "boolean"
          | "object"
          | "null"
          | "enum"
          | "literal"
          | "array"
          | "tuple"
          | "record"
          | "union"
          | "discriminatedUnion"
          | "conditional"
          | "negation"
          | "file"
          | "never"
          | "unknown"