UNPKG

378 BTypeScriptView Raw
1import type { PropertyKey } from "../index";
2
3declare function Set<O extends object, P extends PropertyKey>(
4 O: O,
5 P: P,
6 V: P extends keyof O ? O[P] : unknown,
7 Throw: true,
8): true | never;
9declare function Set<O extends object, P extends PropertyKey>(
10 O: O,
11 P: P,
12 V: P extends keyof O ? O[P] : unknown,
13 Throw: boolean,
14): boolean;
15export = Set;