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

0.2.4 • Public • Published

Installation

npm install --save @types/bloem

Summary

This package contains type definitions for bloem (https://github.com/wiedi/node-bloem).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bloem.

index.d.ts

/// <reference types= "node" />

export function calculateSize(capacity: number, error_rate: number): number;
export function calculateSlices(size: number, capacity: number): number;

export class Bloem {
    constructor(size: number, slices: number, buffer: Buffer);

    has(key: Buffer): boolean;
    add(key: Buffer): void;
}

export class SafeBloem {
    constructor(capacity: number, error_rate: number, buffer: Buffer);

    has(key: Buffer): boolean;
    add(key: Buffer): boolean;
}

export class ScalingBloem {
    constructor(
        error_rate: number,
        options?: {
            ratio?: number | undefined;
            initial_capacity?: number | undefined;
            scaling?: number | undefined;
        },
    );

    has(key: Buffer): boolean;
    add(key: Buffer): void;
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Daniel Byrne.

Dependents (1)

Package Sidebar

Install

npm i @types/bloem

Weekly Downloads

5

Version

0.2.4

License

MIT

Unpacked Size

4.18 kB

Total Files

5

Last publish

Collaborators

  • types