Skip to content

Commit

Permalink
Added index.d.ts support for event emitter
Browse files Browse the repository at this point in the history
  • Loading branch information
KromDaniel committed Aug 31, 2017
1 parent e54f87e commit c132e0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Expand Up @@ -6,10 +6,10 @@ declare module "local-storage" {

export function on<T>(key: string, cb: (value: T) => void): void;
export function on<T>(key: string, cb: (value: T, old: T) => void): void;
export function on<T>(key: string, cb: (value: T, old: T, url: T) => void): void;
export function on<T>(key: string, cb: (value: T, old: T, url: string) => void): void;

export function off<T>(key: string, cb: (value: T) => void): void;
export function off<T>(key: string, cb: (value: T, old: T) => void): void;
export function off<T>(key: string, cb: (value: T, old: T, url: T) => void): void;
export function off<T>(key: string, cb: (value: T, old: T, url: string) => void): void;
export default function <T>(key: string, value?: T): void;
}

0 comments on commit c132e0f

Please sign in to comment.