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.