reports/frontend/node_modules/es-abstract-get/GetMethod.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

13 lines
349 B
TypeScript

import { PropertyKey } from './isPropertyKey';
type GoodMethodKey<O, K extends PropertyKey> =
K extends keyof O
? (O[K] extends Function | null | undefined ? K : never)
: K;
declare function GetMethod<O extends {}, K extends PropertyKey>(
V: O,
P: K & GoodMethodKey<O, K>,
): Function | undefined;
export = GetMethod;