mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Setting the value also requires the generic type
This commit is contained in:
+1
-1
@@ -92,7 +92,7 @@ declare module ng.local.storage {
|
||||
* @param key
|
||||
* @param value
|
||||
*/
|
||||
set(key: string, value: string): boolean;
|
||||
set(key: string, value: T): boolean;
|
||||
/**
|
||||
* Directly get a value from local storage.
|
||||
* If local storage is not supported, use cookies instead.
|
||||
|
||||
Reference in New Issue
Block a user