selective-option
Version:
A simple selective option resolver
4 lines • 379 B
TypeScript
import type { AllowNullish, PolarKeyResolved } from '../types/private-types';
import type { KeyList, SpecialKeys } from '../types/resolver-types';
export declare function resolvePolarKey<K extends string, S extends string>(key: unknown, keys: KeyList<K>, special?: AllowNullish<SpecialKeys<S, K>>): PolarKeyResolved<K> | undefined;
//# sourceMappingURL=resolve-polar-key.d.ts.map