reports/frontend/node_modules/es-toolkit/dist/compat/object/values.d.ts
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

38 lines
No EOL
1.1 KiB
TypeScript

//#region src/compat/object/values.d.ts
/**
* Creates an array of the own enumerable property values of `object`.
*
* @template T
* @param object - The object to query.
* @returns Returns an array of property values.
*
* @example
* const obj = { a: 1, b: 2, c: 3 };
* values(obj); // => [1, 2, 3]
*/
declare function values<T>(object: Record<string, T> | Record<number, T> | ArrayLike<T> | null | undefined): T[];
/**
* Creates an array of the own enumerable property values of `object`.
*
* @template T
* @param object - The object to query.
* @returns Returns an array of property values.
*
* @example
* const obj = { a: 1, b: 2, c: 3 };
* values(obj); // => [1, 2, 3]
*/
declare function values<T extends object>(object: T | null | undefined): Array<T[keyof T]>;
/**
* Creates an array of the own enumerable property values of `object`.
*
* @param object - The object to query.
* @returns Returns an array of property values.
*
* @example
* const obj = { a: 1, b: 2, c: 3 };
* values(obj); // => [1, 2, 3]
*/
declare function values(object: any): any[];
//#endregion
export { values };