mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-25 04:47:57 +00:00
a5542fdd87
- Fixed internal @polkadot references to @pezkuwi - Updated hw-ledger and hw-ledger-transports packages - Updated keyring and networks packages - Version 14.0.7
13 lines
370 B
TypeScript
13 lines
370 B
TypeScript
// Copyright 2017-2025 @pezkuwi/util authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
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 function objectEntries<T extends object> (obj: T): Entries<T> {
|
|
return Object.entries(obj) as Entries<T>;
|
|
}
|