> ISPO SDK documentation. [HTML](https://ispo.ai/docs/types/core.Supporting_types.JsonSchemaValue.html) · [Documentation index](https://ispo.ai/docs/llms.txt)

# Type Alias JsonSchemaValue<S>

```typescript
JsonSchemaValue: S extends { const: infer C }
    ? C
    : S extends { enum: readonly (infer E)[] }
        ? E
        : S extends { type: "null" }
            ? null
            : S extends { type: "boolean" }
                ? boolean
                : S extends { type: "number"
                | "integer" }
                    ? number
                    : S extends { type: "string" }
                        ? string
                        : S extends { type: "array" }
                            ? S extends { items: infer I extends JsonSchema }
                                ? JsonSchemaValue<I>[]
                                : unknown[]
                            : S extends { type: "object" } ? ObjectSchemaValue<S> : unknown
```

Types: [S](#s), [JsonSchema](core.Supporting_types.JsonSchema.md), JsonSchemaValue, [ObjectSchemaValue](core.Supporting_types.ObjectSchemaValue.md)

Infer the value accepted by a literal project-command schema. Literal `const`/`enum` values take precedence, followed by the declared `type`. An empty or otherwise untyped schema intentionally infers `unknown`.

#### Type Parameters

*   <a id="s"></a>S extends [JsonSchema](core.Supporting_types.JsonSchema.md)
