Skip to content

Instantly share code, notes, and snippets.

@ryanisinallofus
Created April 14, 2015 23:00
Show Gist options
  • Save ryanisinallofus/5d609d04e9af517ccc0d to your computer and use it in GitHub Desktop.
Save ryanisinallofus/5d609d04e9af517ccc0d to your computer and use it in GitHub Desktop.
var getItem = function(key: string): Object {
return JSON.parse(localStorage.getItem(key));
};
@ryanisinallofus
Copy link
Author

/Users/richardray/Projects/Ployer/web/src/data.js:29:20,44: null
This type is incompatible with
/private/var/folders/7j/drgd5b893rq8yfskz1xvgfyr0000gn/T/flow_richardray/flowlib_2007b367/lib/core.js:271:24,29: string

/Users/richardray/Projects/Ployer/web/src/data.js:29:20,44: undefined
This type is incompatible with
/private/var/folders/7j/drgd5b893rq8yfskz1xvgfyr0000gn/T/flow_richardray/flowlib_2007b367/lib/core.js:271:24,29: string

Found 2 errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment