Files
pezkuwi-common/packages/util/src/object/entries.ts
T
pezkuwichain a5542fdd87 Rebrand: polkadot → pezkuwi internal references fixed
- Fixed internal @polkadot references to @pezkuwi
- Updated hw-ledger and hw-ledger-transports packages
- Updated keyring and networks packages
- Version 14.0.7
2026-01-07 02:34:39 +03:00

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>;
}