Type Alias

GLib-2.0GLib$ParseShallowVariantKeyValue

$ParseShallowVariantKeyValue: string extends State
    ? VariantTypeError<
        "$ParseShallowVariantKeyValue: 'string' is not a supported type.",
    >
    : $SkipUntil<State, "}"> extends [infer Remaining]
        ? Remaining extends string
            ? [[any, GLib.Variant], Remaining]
            : VariantTypeError<"Invalid key-value format">
        : VariantTypeError<"Invalid key-value format">

Parses key-value for shallow unpacking

Type Parameters

  • State extends string