@types/internal-slot
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/internal-slot

Weekly Downloads

16,796

Version

1.0.3

License

MIT

Unpacked Size

3.79 kB

Total Files

5

Last publish

Collaborators

  • types