mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 07:57:59 +00:00
10 lines
245 B
TypeScript
10 lines
245 B
TypeScript
type Entries<T> = {
|
|
[K in keyof T]: [K, T[K]];
|
|
}[keyof T][];
|
|
/**
|
|
* @name objectEntries
|
|
* @summary A version of Object.entries that is typed for TS
|
|
*/
|
|
export declare function objectEntries<T extends object>(obj: T): Entries<T>;
|
|
export {};
|