3.0.1 • Published 2 years ago
@types/keyv__sqlite v3.0.1
Installation
npm install --save @types/keyv__sqlite
Summary
This package contains type definitions for @keyv/sqlite (https://github.com/lukechilds/keyv-sqlite).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/keyv__sqlite.
index.d.ts
// Type definitions for @keyv/sqlite 2.0
// Project: https://github.com/lukechilds/keyv-sqlite
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="node" />
import { Store } from 'keyv';
import { EventEmitter } from 'events';
export = KeyvSqlite;
declare class KeyvSqlite extends EventEmitter implements Store<string | undefined> {
readonly ttlSupport: false;
namespace?: string | undefined;
constructor(options?: KeyvSqlite.Options);
get(key: string): Promise<string | undefined>;
set(key: string, value: string | undefined): Promise<any>;
delete(key: string): Promise<boolean>;
clear(): Promise<void>;
}
declare namespace KeyvSqlite {
interface Options {
uri?: string | undefined;
busyTimeout?: number | undefined;
table?: string | undefined;
keySize?: number | undefined;
}
}
Additional Details
- Last updated: Thu, 08 Jul 2021 16:23:15 GMT
- Dependencies: @types/keyv, @types/node
- Global values: none
Credits
These definitions were written by BendingBender.