diff --git a/index.d.ts b/index.d.ts index d5e1079..0a37261 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,15 +1,15 @@ declare module "local-storage" { export function set(key: string, value: T): boolean; export function get(key: string): T; - export function remove(key:string):void; - export function clear():void; + export function remove(key: string): void; + export function clear(): void; - export function on(key:string,cb: (value:T)=>void):void; - export function on(key:string,cb: (value:T,old : T)=>void):void; - export function on(key:string,cb: (value:T,old : T,url: T)=>void):void; - - export function off(key:string,cb: (value:T)=>void):void; - export function off(key:string,cb: (value:T,old : T)=>void):void; - export function off(key:string,cb: (value:T,old : T,url: T)=>void):void; - export default function(key:string,value?:T):void; + export function on(key: string, cb: (value: T) => void): void; + export function on(key: string, cb: (value: T, old: T) => void): void; + export function on(key: string, cb: (value: T, old: T, url: T) => void): void; + + export function off(key: string, cb: (value: T) => void): void; + export function off(key: string, cb: (value: T, old: T) => void): void; + export function off(key: string, cb: (value: T, old: T, url: T) => void): void; + export default function (key: string, value?: T): void; } \ No newline at end of file