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