Skip to content

Instantly share code, notes, and snippets.

@Codesleuth
Created September 10, 2016 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Codesleuth/d5cd1767ee9f461fd53674db121c98c6 to your computer and use it in GitHub Desktop.
Save Codesleuth/d5cd1767ee9f461fd53674db121c98c6 to your computer and use it in GitHub Desktop.
Partial typings definitions for yayson. Ugly AF
declare module 'yayson' {
class Store {
sync(obj: Object): Object;
sync<T>(obj: Object): T;
}
interface Yayson {
Store: typeof Store;
}
function yayson(): Yayson;
namespace yayson {}
export = yayson;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment