diff --git a/electron-json-storage/electronic-json-storage.d.ts b/electron-json-storage/electronic-json-storage.d.ts new file mode 100644 index 000000000..0ea790638 --- /dev/null +++ b/electron-json-storage/electronic-json-storage.d.ts @@ -0,0 +1,13 @@ +// Type definitions for electron-json-storage +// Project: https://github.com/jviotti/electron-json-storage +// Definitions by: Sam Saint-Pettersen +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare module "electron-json-storage" { + export function get(key: string, callback: (error: any, data: Object) => void): void; + export function set(key: string, json: Object, callback: (error: any) => void): void; + export function has(key: string, callback: (error: any, hasKey: boolean) => void): void; + export function keys(callback: (error: any, keys: string[]) => void): void; + export function remove(key: string, callback: (error: any) => void): void; + export function clear(callback: (error: any) => void): void; +}