File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -349,11 +349,14 @@ using StringTools;
349
349
}
350
350
351
351
/** Gets the value associated with the specified storage key. **/
352
- inline function getStorage (key : String ) return window .sessionStorage .getItem (key );
352
+ inline function getStorage (key : String ): Null <String >
353
+ return window .sessionStorage .getItem (key );
353
354
354
355
/** Removes the value associated with the specified storage key. **/
355
- inline function removeStorage (key : String ) window .sessionStorage .removeItem (key );
356
+ inline function removeStorage (key : String ): Void
357
+ window .sessionStorage .removeItem (key );
356
358
357
359
/** Associates a value with the specified storage key. **/
358
- inline function setStorage (key : String , value : String ) window .sessionStorage .setItem (key , value );
360
+ inline function setStorage (key : String , value : String ): Void
361
+ window .sessionStorage .setItem (key , value );
359
362
}
You can’t perform that action at this time.
0 commit comments