{"action":"created","issue":{"url":"https://api.github.com/repos/frenic/csstype/issues/4","repository_url":"https://api.github.com/repos/frenic/csstype","labels_url":"https://api.github.com/repos/frenic/csstype/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/frenic/csstype/issues/4/comments","events_url":"https://api.github.com/repos/frenic/csstype/issues/4/events","html_url":"https://github.com/frenic/csstype/issues/4","id":294138953,"number":4,"title":"Incompatibilities with @types/react","user":{"login":"pelotom","id":128019,"avatar_url":"https://avatars2.githubusercontent.com/u/128019?v=4","gravatar_id":"","url":"https://api.github.com/users/pelotom","html_url":"https://github.com/pelotom","followers_url":"https://api.github.com/users/pelotom/followers","following_url":"https://api.github.com/users/pelotom/following{/other_user}","gists_url":"https://api.github.com/users/pelotom/gists{/gist_id}","starred_url":"https://api.github.com/users/pelotom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelotom/subscriptions","organizations_url":"https://api.github.com/users/pelotom/orgs","repos_url":"https://api.github.com/users/pelotom/repos","events_url":"https://api.github.com/users/pelotom/events{/privacy}","received_events_url":"https://api.github.com/users/pelotom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-03T19:37:30Z","updated_at":"2018-03-14T19:47:49Z","closed_at":null,"author_association":"NONE","body":"I was taking a look at what it would take to get `@types/react` to use `csstype` instead of its own internal definition for `CSSProperties`. So far I've run into the following issues:\r\n\r\n1. `CSSProperties` uses numeric literals for `fontWeight`:\r\n\r\n    ```\r\n    fontWeight?: CSSWideKeyword | \"normal\" | \"bold\" | \"bolder\" | \"lighter\" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;\r\n    ```\r\n\r\n    whereas `csstype` uses all string literals:\r\n\r\n    ```\r\n    type FontWeightProperty = All | \"900\" | \"bold\" | \"bolder\" | \"lighter\" | \"100\" | \"200\" | \"normal\" | \"400\" | \"500\" | \"600\" | \"700\" | \"800\" | \"300\";\r\n    ```\r\n\r\n    Could this be changed to use numeric literals?\r\n\r\n2. SVG properties such as `fillOpacity`, `strokeOpacity` and `strokeWidth` appear to be missing.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/frenic/csstype/issues/comments/373151783","html_url":"https://github.com/frenic/csstype/issues/4#issuecomment-373151783","issue_url":"https://api.github.com/repos/frenic/csstype/issues/4","id":373151783,"user":{"login":"frenic","id":237182,"avatar_url":"https://avatars3.githubusercontent.com/u/237182?v=4","gravatar_id":"","url":"https://api.github.com/users/frenic","html_url":"https://github.com/frenic","followers_url":"https://api.github.com/users/frenic/followers","following_url":"https://api.github.com/users/frenic/following{/other_user}","gists_url":"https://api.github.com/users/frenic/gists{/gist_id}","starred_url":"https://api.github.com/users/frenic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frenic/subscriptions","organizations_url":"https://api.github.com/users/frenic/orgs","repos_url":"https://api.github.com/users/frenic/repos","events_url":"https://api.github.com/users/frenic/events{/privacy}","received_events_url":"https://api.github.com/users/frenic/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T19:47:49Z","updated_at":"2018-03-14T19:47:49Z","author_association":"OWNER","body":"Here's an [index of SVG properties](https://svgwg.org/svg2-draft/propidx.html). But there's no raw data to use as far as I can see. Either way, there's a [complexity described here](https://bugzilla.mozilla.org/show_bug.cgi?id=1212826#c7) with SVG properties that some of them only apply to a very limited group of elements. Some of them only apply to one single element like the [`stop-color` property](https://svgwg.org/svg2-draft/pservers.html#StopColorProperty)."}}
{"actor":{"display_login":"frenic"}}