Installation
npm install --save @types/internal-slot
Summary
This package contains type definitions for internal-slot (https://github.com/ljharb/internal-slot#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/internal-slot.
index.d.ts
/**
* Asserts that `O` is an `object`, `slot` is a `string`
* and `O` has the internal slot `slot`.
*/
export function assert(O: object, slot: string): void;
/**
* Gets the value of `O`'s internal slot `slot`.
*/
export function get(O: object, slot: string): any;
/**
* Checks that `O` has the internal slot `slot`.
*/
export function has(O: object, slot: string): boolean;
/**
* Sets the object `O`'s internal slot `slot`'s value to `V`.
*/
export function set(O: object, slot: string, V: any): void;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by ExE Boss, and Jordan Harband.