index.d.ts 382 B

123456789101112
  1. declare namespace SLOT {
  2. type InternalSlot = string; // `[[${string}]]`; // TODO: restrict this to require the brackets
  3. }
  4. declare const SLOT: {
  5. assert(O: object, slot: SLOT.InternalSlot): void;
  6. get(O: object, slot: SLOT.InternalSlot): unknown;
  7. set(O: object, slot: SLOT.InternalSlot, value?: unknown): void;
  8. has(O: object, slot: SLOT.InternalSlot): boolean;
  9. }
  10. export = SLOT;