Skip to content

Instantly share code, notes, and snippets.

@muuki88
Created September 14, 2018 07:49
Show Gist options
  • Save muuki88/15012dc34453982ee56abcdd1683baff to your computer and use it in GitHub Desktop.
Save muuki88/15012dc34453982ee56abcdd1683baff to your computer and use it in GitHub Desktop.
KeyValue Storage - Untyped
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