reports/frontend/node_modules/es-toolkit/dist/compat/object/toPairs.d.mts
jtricerolph 1c411e402e Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-20 14:37:36 +00:00

26 lines
No EOL
748 B
TypeScript

//#region src/compat/object/toPairs.d.ts
/**
* Creates an array of key-value pairs from an object.
*
* @template T
* @param object - The object to query.
* @returns Returns the array of key-value pairs.
*
* @example
* const object = { a: 1, b: 2 };
* toPairs(object); // [['a', 1], ['b', 2]]
*/
declare function toPairs<T>(object?: Record<string, T> | Record<number, T>): Array<[string, T]>;
/**
* Creates an array of key-value pairs from an object.
*
* @param object - The object to query.
* @returns Returns the array of key-value pairs.
*
* @example
* const object = { a: 1, b: 2 };
* toPairs(object); // [['a', 1], ['b', 2]]
*/
declare function toPairs(object?: object): Array<[string, any]>;
//#endregion
export { toPairs };