mirror of
https://github.com/fluencelabs/libp2p-ts
synced 2025-04-14 16:16:05 +00:00
19 lines
495 B
TypeScript
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;
|
||
|
}
|