Type Alias

GLib-2.0GLib$ParseConstructorInputDict

$ParseConstructorInputDict: string extends State
    ? VariantTypeError<"Invalid dictionary state">
    : State extends `${infer Key}${infer ValueType}}${infer Remaining}`
        ? Key extends | "s"
        | "o"
        | "g"
        | "n"
        | "q"
        | "t"
        | "d"
        | "u"
        | "i"
        | "x"
        | "y"
            ? $ParseConstructorInputValue<ValueType> extends [infer V, ""]
                ? [CreateIndexType<Key, V>, Remaining]
                : VariantTypeError<"Invalid dictionary value type">
            : VariantTypeError<"Invalid dictionary key type">
        : VariantTypeError<"Invalid dictionary format">

Parses dictionary for constructor input

Type Parameters

  • State extends string