34931de01cd97f39292ef31243b7ab39894d82b7b170745c8fd0d2846ed814dacb9f992227535531430c200ca08589c241e826deab4174c094bbf3510e4603 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;