effect-io-ai

Package: effect
Module: Schema

Schema.TemplateLiteralParser.Type

Computes the decoded tuple type produced by TemplateLiteralParser.

Details

Literal parts contribute their literal value to the tuple. Schema parts contribute their decoded Type.

Signature

type Type<Parts> = Parts extends readonly [infer Head, ...infer Tail] ? readonly [
      Head extends TemplateLiteral.LiteralPart ? Head :
        Head extends ConstraintDecoder<infer T, unknown> ? T
        : never,
      ...Type<Tail>
    ]
    : []

Source

Since v3.10.0