Created
September 14, 2018 07:49
-
-
Save muuki88/15012dc34453982ee56abcdd1683baff to your computer and use it in GitHub Desktop.
KeyValue Storage - Untyped
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface UserStorage { | |
/** set a value for a specific key */ | |
set(key: string, value: string): void; | |
/** get the value for a specific key. If not present return null*/ | |
get(key: string): string | null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment