libp2p-ts/store/index.d.ts
2018-06-24 08:41:00 +02:00

19 lines
495 B
TypeScript

// Type definitions for store 2.0.12
// Project: https://github.com/marcuswestin/store.js
// Definitions by: Jaco Greeff <https://github.com/jacogr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module 'store' {
type EachCb = (value: any, key: string) => void;
type Store = {
each: (fn: EachCb) => void,
get: (key: string) => any,
remove: (key: string) => any,
set: (key: string, value: any) => void,
}
const store: Store;
export default store;
}