question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: Add content parameter to DtsCreator.create

See original GitHub issue

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;.

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:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
andersekdahlcommented, May 26, 2016

Haven’t tested it, but it looks exactly like what we want!

0reactions
skovycommented, Feb 17, 2019

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 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found