{"action":"opened","issue":{"url":"https://api.github.com/repos/bradmartin/nativescript-pulltorefresh/issues/13","repository_url":"https://api.github.com/repos/bradmartin/nativescript-pulltorefresh","labels_url":"https://api.github.com/repos/bradmartin/nativescript-pulltorefresh/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/bradmartin/nativescript-pulltorefresh/issues/13/comments","events_url":"https://api.github.com/repos/bradmartin/nativescript-pulltorefresh/issues/13/events","html_url":"https://github.com/bradmartin/nativescript-pulltorefresh/issues/13","id":173945085,"number":13,"title":"Typescript Error While Registering PullToRefresh In NG2 App","user":{"login":"shripalsoni04","id":4411891,"avatar_url":"https://avatars.githubusercontent.com/u/4411891?v=3","gravatar_id":"","url":"https://api.github.com/users/shripalsoni04","html_url":"https://github.com/shripalsoni04","followers_url":"https://api.github.com/users/shripalsoni04/followers","following_url":"https://api.github.com/users/shripalsoni04/following{/other_user}","gists_url":"https://api.github.com/users/shripalsoni04/gists{/gist_id}","starred_url":"https://api.github.com/users/shripalsoni04/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shripalsoni04/subscriptions","organizations_url":"https://api.github.com/users/shripalsoni04/orgs","repos_url":"https://api.github.com/users/shripalsoni04/repos","events_url":"https://api.github.com/users/shripalsoni04/events{/privacy}","received_events_url":"https://api.github.com/users/shripalsoni04/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-30T07:08:14Z","updated_at":"2016-08-30T07:08:14Z","closed_at":null,"body":"To use PullToRefresh in angular 2 app, when we try to register PullToRefresh by `registerElement('PullToRefresh', () => PullToRefresh);`. Typescript compiler gives error: '() => typeof PullToRefresh' is not assignable to parameter of type '() => ViewClass'.\r\n\r\nThe error is due to in definition file, extending PullToRefresh by ContentView is missing.\r\n\r\nSo extending PullToRefresh by ContentView in definition file will fix this.\r\n```\r\nimport { ContentView } from 'ui/content-view';\r\n\r\nexport declare class PullToRefresh extends ContentView {\r\n...\r\n}\r\n```"}}
{"actor":{"display_login":"shripalsoni04"}}