{"action":"closed","issue":{"url":"https://api.github.com/repos/Quramy/typed-css-modules/issues/5","repository_url":"https://api.github.com/repos/Quramy/typed-css-modules","labels_url":"https://api.github.com/repos/Quramy/typed-css-modules/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Quramy/typed-css-modules/issues/5/comments","events_url":"https://api.github.com/repos/Quramy/typed-css-modules/issues/5/events","html_url":"https://github.com/Quramy/typed-css-modules/issues/5","id":156926890,"number":5,"title":"Feature request: Add content parameter to DtsCreator.create","user":{"login":"andersekdahl","id":163637,"avatar_url":"https://avatars.githubusercontent.com/u/163637?v=3","gravatar_id":"","url":"https://api.github.com/users/andersekdahl","html_url":"https://github.com/andersekdahl","followers_url":"https://api.github.com/users/andersekdahl/followers","following_url":"https://api.github.com/users/andersekdahl/following{/other_user}","gists_url":"https://api.github.com/users/andersekdahl/gists{/gist_id}","starred_url":"https://api.github.com/users/andersekdahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andersekdahl/subscriptions","organizations_url":"https://api.github.com/users/andersekdahl/orgs","repos_url":"https://api.github.com/users/andersekdahl/repos","events_url":"https://api.github.com/users/andersekdahl/events{/privacy}","received_events_url":"https://api.github.com/users/andersekdahl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Quramy/typed-css-modules/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-26T08:04:51Z","updated_at":"2016-05-31T06:09:23Z","closed_at":"2016-05-31T06:09:23Z","body":"We use Webpack to build our css and we want to use `typed-css-modules` to create type definitions for it. But we also use scss and `typed-css-modules` fails on scss specific syntax which makes this promise fail: https://github.com/Quramy/typed-css-modules/blob/master/src/dtsCreator.js#L94 with a `CssSyntaxError` and `Unknown word` for thinks like `max-height: #{$base-line-height * $line-count}rem;`.\r\n\r\nWhen we call `DtsCreator.create()` we have both the path to the file, and the contents of the file transformed from scss to css. We'd like to be able to pass a second argument to `DtsCreator.create()` with the contents of the file and not have `typed-css-modules` read it from the file since it contains invalid css syntax.\r\n\r\nBtw, thanks for a great module!"}}
{"actor":{"display_login":"andersekdahl"}}