ISPO SDK
    Preparing search index...

    Type Alias JsonSchemaValue<S>

    Markdown
    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

    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