npm.io
3.0.5 • Published 2 years ago

@types/memdown

Licence
MIT
Version
3.0.5
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/memdown

Summary

This package contains type definitions for memdown (https://github.com/Level/memdown).

Details

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

index.d.ts

import { AbstractLevelDOWN } from "abstract-leveldown";

export interface MemDown<K, V> extends AbstractLevelDOWN<K, V> {}

export interface MemDownConstructor {
    // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
    new<K = any, V = any>(): MemDown<K, V>;
    // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
    <K = any, V = any>(): MemDown<K, V>;
}

export const MemDown: MemDownConstructor;
export default MemDown;

Additional Details

Credits

These definitions were written by Meirion Hughes, and Daniel Byrne.