{"action":"closed","issue":{"url":"https://api.github.com/repos/meteor-typescript/meteor-typescript-libs/issues/16","labels_url":"https://api.github.com/repos/meteor-typescript/meteor-typescript-libs/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/meteor-typescript/meteor-typescript-libs/issues/16/comments","events_url":"https://api.github.com/repos/meteor-typescript/meteor-typescript-libs/issues/16/events","html_url":"https://github.com/meteor-typescript/meteor-typescript-libs/issues/16","id":83204406,"number":16,"title":"Can't get EJSON.addType to work","user":{"login":"vjau","id":5278429,"avatar_url":"https://avatars.githubusercontent.com/u/5278429?v=3","gravatar_id":"","url":"https://api.github.com/users/vjau","html_url":"https://github.com/vjau","followers_url":"https://api.github.com/users/vjau/followers","following_url":"https://api.github.com/users/vjau/following{/other_user}","gists_url":"https://api.github.com/users/vjau/gists{/gist_id}","starred_url":"https://api.github.com/users/vjau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjau/subscriptions","organizations_url":"https://api.github.com/users/vjau/orgs","repos_url":"https://api.github.com/users/vjau/repos","events_url":"https://api.github.com/users/vjau/events{/privacy}","received_events_url":"https://api.github.com/users/vjau/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-31T22:12:49Z","updated_at":"2015-06-01T18:57:30Z","closed_at":"2015-06-01T18:57:30Z","body":"Hi, i have trouble to get EJSON.addType to work, the compiler always complains about the factory provided. Anyone has pointers to help me do this ?\r\nAdditionnaly, the definition says this :\r\n```js\r\nfunction addType(name: string, factory: (val: EJSONable) => JSONable): void;\r\n```\r\n\r\nShould'nt it be the opposite ? \r\n```js\r\nfunction addType(name: string, factory: (val: JSONable) => EJSONable): void;\r\n```\r\n, since the factory is taking a valid JSON string and create (\"revive\") the custom type ? \r\n\r\nThank you in advance."}}