Type Alias

GLib-2.0GLib$ParseConstructorInputTuple

$ParseConstructorInputTuple: string extends State
    ? VariantTypeError<"Invalid tuple state">
    : State extends `)${infer Remaining}`
        ? [Memo, Remaining]
        : $ParseConstructorInputValue<State> extends [
            infer Value,
            infer NextState,
        ]
            ? NextState extends string
                ? $ParseConstructorInputTuple<NextState, [...Memo, Value]>
                : VariantTypeError<"Invalid tuple parsing">
            : VariantTypeError<"Tuple element parsing failed">

Parses tuple for constructor input

Type Parameters

  • State extends string
  • Memo extends any[] = []