npm install --save @types/random-access-file
This package contains type definitions for random-access-file (https://github.com/random-access-storage/random-access-file).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/random-access-file.
import RandomAccessStorage = require("random-access-storage");
declare class Pool {
constructor(maxSize: number);
}
declare class RandomAccessFile extends RandomAccessStorage {
constructor(
filename: string,
opts?: Readonly<{
/** truncate the file before reading / writing */
truncate?: boolean;
/** truncate the file to this size first */
size?: number;
/** should the file be opened as readable? */
readable?: boolean;
/** should the file be opened as writable? */
writable?: boolean;
/** lock the file */
lock?: boolean;
/** mark the file as sparse */
sparse?: boolean;
directory?: string;
pool?: Pool;
}>,
);
static createPool(maxSize: number): Pool;
}
export = RandomAccessFile;
- Last updated: Fri, 21 Jun 2024 22:07:33 GMT
- Dependencies: @types/random-access-storage
These definitions were written by Evan Hahn.