UNPKG

higlass

Version:

HiGlass Hi-C / genomic / large data viewer

19 lines (18 loc) 501 B
export default dictItems; export type DictItems<T> = Array<{ [Key in keyof T]: [Key, T[Key]]; }[keyof T]>; /** * @template T * @typedef {Array<{ [Key in keyof T]: [Key, T[Key]] }[keyof T]>} DictItems */ /** * Return an array of (key,value) pairs that are present in this * dictionary * * TODO(Trevor): Replace with `Object.entries`? * * @template {object} T * @param {T} dictionary * * @returns {DictItems<T>} */ declare function dictItems<T extends object>(dictionary: T): DictItems<T>;