1.3.1 • Published 3 years ago

@types/keyv__mysql v1.3.1

Weekly downloads
18
License
MIT
Repository
-
Last release
3 years ago

Installation

npm install --save @types/keyv__mysql

Summary

This package contains type definitions for @keyv/mysql (https://github.com/lukechilds/keyv-mysql).

Details

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

index.d.ts

// Type definitions for @keyv/mysql 1.1
// Project: https://github.com/lukechilds/keyv-mysql
// 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 = KeyvMysql;

declare class KeyvMysql extends EventEmitter implements Store<string | undefined> {
    readonly ttlSupport: false;
    namespace?: string | undefined;

    constructor(uri?: string);
    constructor(options?: KeyvMysql.Options); // tslint:disable-line:unified-signatures

    get(key: string): Promise<string | undefined>;
    set(key: string, value: string | undefined): Promise<any>;
    delete(key: string): Promise<boolean>;
    clear(): Promise<void>;
}

declare namespace KeyvMysql {
    interface Options {
        uri?: string | undefined;
        table?: string | undefined;
        keySize?: number | undefined;
    }
}

Additional Details

Credits

These definitions were written by BendingBender.

1.3.1

3 years ago

1.1.2

4 years ago

1.1.1

5 years ago

1.1.0

6 years ago