Type Alias

GLib-2.0GLibCreateIndexType

CreateIndexType: Key extends "s"
| "o"
| "g"
    ? { [key: string]: Value }
    : Key extends "n"
    | "q"
    | "t"
    | "d"
    | "u"
    | "i"
    | "x"
    | "y"
        ? { [key: number]: Value }
        : never

Creates index type for dictionaries based on key type

Type Parameters

  • Key extends string
  • Value extends any