Feature request: Add content parameter to DtsCreator.create
See original GitHub issueWe 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;
.
When 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.
Btw, thanks for a great module!
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
horiuchi/dtsgenerator: TypeScript d.ts file generate ... - GitHub
Support freeform objects w/ index signature instead of unknown keyword by #488. Thank you @medfreeman; Support the content property in Parameters by #472....
Read more >@anttiviljami/dtsgenerator - npm package | Snyk
You can connect your project's repository to Snyk to stay up to date on security alerts and receive automatic fix pull requests. #...
Read more >Add Features—ArcGIS REST APIs
Add Features https://<featurelayer-url>/addFeaturesCreate10.0 Description This operation adds features to the associated feature layer or table (POST only).
Read more >dtsgenerator - npm
dtsgenerator. TypeScript d.ts file generator from JSON Schema file or OpenAPI(Swagger) spec file. nodejs version npm version build status ...
Read more >Total Guide To Custom Angular Schematics | by Tomas Trajan
Now, for the content of our newly created file we have to add this… The Angular Schematics template syntax consists of <%= opening...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Haven’t tested it, but it looks exactly like what we want!
I also recently ran into this but was hoping to still use it as a CLI. If you’re looking to support SASS consider looking at
typed-scss-modules
as well 👍