{"action":"created","issue":{"url":"https://api.github.com/repos/malte-wessel/react-custom-scrollbars/issues/36","repository_url":"https://api.github.com/repos/malte-wessel/react-custom-scrollbars","labels_url":"https://api.github.com/repos/malte-wessel/react-custom-scrollbars/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/malte-wessel/react-custom-scrollbars/issues/36/comments","events_url":"https://api.github.com/repos/malte-wessel/react-custom-scrollbars/issues/36/events","html_url":"https://github.com/malte-wessel/react-custom-scrollbars/issues/36","id":143787138,"number":36,"title":"typescript definitions file","user":{"login":"alihammad-gist","id":3153718,"avatar_url":"https://avatars.githubusercontent.com/u/3153718?v=3","gravatar_id":"","url":"https://api.github.com/users/alihammad-gist","html_url":"https://github.com/alihammad-gist","followers_url":"https://api.github.com/users/alihammad-gist/followers","following_url":"https://api.github.com/users/alihammad-gist/following{/other_user}","gists_url":"https://api.github.com/users/alihammad-gist/gists{/gist_id}","starred_url":"https://api.github.com/users/alihammad-gist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alihammad-gist/subscriptions","organizations_url":"https://api.github.com/users/alihammad-gist/orgs","repos_url":"https://api.github.com/users/alihammad-gist/repos","events_url":"https://api.github.com/users/alihammad-gist/events{/privacy}","received_events_url":"https://api.github.com/users/alihammad-gist/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/malte-wessel/react-custom-scrollbars/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-27T08:08:38Z","updated_at":"2016-06-02T20:21:49Z","closed_at":null,"body":"here is type definition file for this package for anyone looking for it.\r\n\r\n```ts\r\n/// <reference path='../react/react.d.ts' />\r\n\r\ndeclare namespace __RCS {\r\n    import React = __React;\r\n\r\n    interface positionValues {\r\n        top: number\r\n        left: number\r\n        clientWidth: number\r\n        clientHeight: number\r\n        scrollWidth: number\r\n        scrollHeight: number\r\n        scrollLeft: number\r\n        scrollTop: number\r\n    }\r\n\r\n    interface props extends React.HTMLProps<ScrollBar> {\r\n        onScroll?: React.UIEventHandler\r\n        onScrollFrame?: (values: positionValues) => void\r\n        onScrollStart?: () => void\r\n        onScrollStop?: () => void\r\n        onUpdate?: (values: positionValues) => void\r\n\r\n        renderView?: React.StatelessComponent<any>\r\n        renderTrackHorizontal?: React.StatelessComponent<any>\r\n        renderTrackVertical?: React.StatelessComponent<any>\r\n        renderThumbHorizontal?: React.StatelessComponent<any>\r\n        renderThumbVertical?: React.StatelessComponent<any>\r\n\r\n        autoHide?: boolean\r\n        autoHideTimeout?: number\r\n        autoHideDuration?: number\r\n\r\n        thumbSize?: number\r\n        thumbMinSize?: number\r\n        universal?: boolean\r\n    }\r\n\r\n    class ScrollBar extends React.Component<props, {}> {\r\n        scrollTop(top: number)\r\n        scrollLeft(left: number)\r\n        scrollToTop()\r\n        scrollToBottom()\r\n        scrollToLeft()\r\n        scrollToRight()\r\n        getScrollLeft(): number\r\n        getScrollTop(): number\r\n        getScrollWidth(): number\r\n        getScrollHeight(): number\r\n        getWidth(): number\r\n        getHeight(): number\r\n        getValues(): positionValues\r\n    }\r\n}\r\n\r\ndeclare module 'react-custom-scrollbars' {\r\n    var Scrollbars: typeof __RCS.ScrollBar;\r\n    export {\r\n        Scrollbars,\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/malte-wessel/react-custom-scrollbars/issues/comments/223410275","html_url":"https://github.com/malte-wessel/react-custom-scrollbars/issues/36#issuecomment-223410275","issue_url":"https://api.github.com/repos/malte-wessel/react-custom-scrollbars/issues/36","id":223410275,"user":{"login":"camwest","id":22905,"avatar_url":"https://avatars.githubusercontent.com/u/22905?v=3","gravatar_id":"","url":"https://api.github.com/users/camwest","html_url":"https://github.com/camwest","followers_url":"https://api.github.com/users/camwest/followers","following_url":"https://api.github.com/users/camwest/following{/other_user}","gists_url":"https://api.github.com/users/camwest/gists{/gist_id}","starred_url":"https://api.github.com/users/camwest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camwest/subscriptions","organizations_url":"https://api.github.com/users/camwest/orgs","repos_url":"https://api.github.com/users/camwest/repos","events_url":"https://api.github.com/users/camwest/events{/privacy}","received_events_url":"https://api.github.com/users/camwest/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T20:21:49Z","updated_at":"2016-06-02T20:21:49Z","body":"You should host the typings with the library and use the \"typings\" key in the package.json. See https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/Typings%20for%20NPM%20Packages.md for details"}}
{"actor":{"display_login":"camwest"}}