{"action":"created","issue":{"url":"https://api.github.com/repos/typestyle/typestyle/issues/73","repository_url":"https://api.github.com/repos/typestyle/typestyle","labels_url":"https://api.github.com/repos/typestyle/typestyle/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/typestyle/typestyle/issues/73/comments","events_url":"https://api.github.com/repos/typestyle/typestyle/issues/73/events","html_url":"https://github.com/typestyle/typestyle/issues/73","id":195043444,"number":73,"title":"TypeStyle / Free Style middleware?","user":{"login":"jamiewinder","id":4442179,"avatar_url":"https://avatars.githubusercontent.com/u/4442179?v=3","gravatar_id":"","url":"https://api.github.com/users/jamiewinder","html_url":"https://github.com/jamiewinder","followers_url":"https://api.github.com/users/jamiewinder/followers","following_url":"https://api.github.com/users/jamiewinder/following{/other_user}","gists_url":"https://api.github.com/users/jamiewinder/gists{/gist_id}","starred_url":"https://api.github.com/users/jamiewinder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamiewinder/subscriptions","organizations_url":"https://api.github.com/users/jamiewinder/orgs","repos_url":"https://api.github.com/users/jamiewinder/repos","events_url":"https://api.github.com/users/jamiewinder/events{/privacy}","received_events_url":"https://api.github.com/users/jamiewinder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-12T18:02:21Z","updated_at":"2016-12-13T13:19:39Z","closed_at":null,"body":"It might be a good idea to allow a way for setting a transformation function that can change the object that'll get passed to `freeStyle.registerStyle` after TypeStyle has had it's way with it. For example, this would be useful for use with the various auto-prefixing libraries out there, which I don't think will be compatible with TypeStyle directly because of some of its various intricacies (e.g. `$nest`) but are compatible with Free Style.\r\n\r\nThoughts? \r\n\r\nIt'd be nice to pass this to `style` somehow (rather than set globally), but that could be messy given how `style` is currently a variadic function. This would be nice however:\r\n```typescript\r\nimport autoprefix from 'some-inline-style-prefixer';\r\n\r\nconst myStyle1 = style({\r\n    display: 'flex',\r\n    userSelect: 'none'\r\n}, autoprefix);\r\n\r\n// or\r\n\r\nconst flex = { display: 'flex' };\r\nconst noSelect = { userSelect: 'none' };\r\nconst myStyle2 = style([\r\n    flex, \r\n    noSelect\r\n], autoprefix);\r\n```"},"comment":{"url":"https://api.github.com/repos/typestyle/typestyle/issues/comments/266736257","html_url":"https://github.com/typestyle/typestyle/issues/73#issuecomment-266736257","issue_url":"https://api.github.com/repos/typestyle/typestyle/issues/73","id":266736257,"user":{"login":"basarat","id":874898,"avatar_url":"https://avatars.githubusercontent.com/u/874898?v=3","gravatar_id":"","url":"https://api.github.com/users/basarat","html_url":"https://github.com/basarat","followers_url":"https://api.github.com/users/basarat/followers","following_url":"https://api.github.com/users/basarat/following{/other_user}","gists_url":"https://api.github.com/users/basarat/gists{/gist_id}","starred_url":"https://api.github.com/users/basarat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basarat/subscriptions","organizations_url":"https://api.github.com/users/basarat/orgs","repos_url":"https://api.github.com/users/basarat/repos","events_url":"https://api.github.com/users/basarat/events{/privacy}","received_events_url":"https://api.github.com/users/basarat/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T13:19:39Z","updated_at":"2016-12-13T13:19:39Z","body":"> Once I get time, I'll try and give it a go as-is (e.g. const myStyle = style(autoprefix({ ... }) as any);) and see if it works.\r\n\r\nCheers. Also no matter if it works out of the box or not (I am with you in that it probably doesn't), I am sure we could write a `prefixer(NestedCSSProps)` function quite easily. Even move to `typestyle-prefixer` ;).\r\n\r\nThe *global* one would be nice and require middleware support. Think we can add / discuss post 1.0 :rose:"}}
{"actor":{"display_login":"basarat"}}