From 398cc1eb8951eaa8c459534cba01976aaef2a836 Mon Sep 17 00:00:00 2001 From: Maik Date: Mon, 5 Jan 2015 12:32:37 +0100 Subject: [PATCH] Values in localStorage are not only strings The user of the lib can put all types of values into localStorage. So the ILocalStorageService should be a generic. --- angular-local-storage/angular-local-storage.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/angular-local-storage/angular-local-storage.d.ts b/angular-local-storage/angular-local-storage.d.ts index 27d287dd3..34cc40da4 100644 --- a/angular-local-storage/angular-local-storage.d.ts +++ b/angular-local-storage/angular-local-storage.d.ts @@ -75,7 +75,7 @@ declare module ng.local.storage { } - interface ILocalStorageService { + interface ILocalStorageService { /** * Checks if the browser support the current storage type(e.g: localStorage, sessionStorage). * Returns: Boolean @@ -99,7 +99,7 @@ declare module ng.local.storage { * Returns: value from local storage * @param key */ - get(key: string): string; + get(key: string): T; /** * Return array of keys for local storage, ignore keys that not owned. * Returns: value from local storage @@ -146,4 +146,4 @@ declare module ng.local.storage { */ cookie:ICookie; } -} \ No newline at end of file +}