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

1.1.2 • Public • Published

Installation

npm install --save @types/skeleton-rendezvous

Summary

This package contains type definitions for skeleton-rendezvous (https://github.com/SocketCluster/skeleton-rendezvous#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/skeleton-rendezvous.

index.d.ts

declare namespace SkeletonRendezvousHasher {
    interface Options {
        fanout?: number;
        hashAlgorithm?: string;
        targetClusterSize?: number;
        minClusterSize?: number;
        sites?: string[];
    }
}

// eslint-disable-next-line no-redeclare
declare class SkeletonRendezvousHasher {
    constructor(options?: SkeletonRendezvousHasher.Options);
    getSites(): string[];
    setSites(sites: string[]): void;
    addSites(sites: string[]): void;
    removeSites(sites: string | string[]): void;
    findSite(key: string): string;
    hash(key: string): string;
}

export = SkeletonRendezvousHasher;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by aikoven.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/skeleton-rendezvous

Weekly Downloads

92

Version

1.1.2

License

MIT

Unpacked Size

3.87 kB

Total Files

5

Last publish

Collaborators

  • types