UNPKG

624 BTypeScriptView Raw
1import type { PropertyKey } from "../index";
2
3declare function OrdinaryGetOwnProperty<O extends object, P extends PropertyKey>(
4 O: O,
5 P: P,
6):
7 | {
8 "[[Configurable]]": boolean;
9 "[[Enumerable]]": boolean;
10 "[[Writable]]": boolean;
11 "[[Value]]": P extends keyof O ? O[P] : unknown;
12 }
13 | {
14 "[[Configurable]]": boolean;
15 "[[Enumerable]]": boolean;
16 "[[Get]]": (() => P extends keyof O ? O[P] : unknown) | undefined;
17 "[[Set]]": ((value: P extends keyof O ? O[P] : unknown) => void) | undefined;
18 }
19 | undefined;
20export = OrdinaryGetOwnProperty;
21
\No newline at end of file