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.

Hyphen-separated property names

See original GitHub issue

Hi, this project looks awesome! I’m trying to improve the typings for JSS and these typings look very promising in that effort. However, there’s a need in that library for both camel cased and hyphen-separated CSS property names. Would it be possible to generate a kebab-cased version of the Properties interface?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
freniccommented, Feb 3, 2018

Sure, I agree. There should be a hyphened version. I’ll look into it as soon as I can. Should be quite easy.

0reactions
freniccommented, Feb 7, 2018

Fixed in v1.5.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I reference a JavaScript object property with a ...
The answer to the original question is: place the property name in quotes and use array style indexing: obj['property-with-hyphens'];.
Read more >
Access an Object Property with a Hyphen in JavaScript
If the property contains a hyphen, space, or special symbols, you have to use bracket notation. Copied!
Read more >
Micronaut Mastery: Configuration Property Name Is ...
If we refer to a configuration property name using @Value or @Property we must use lowercased and hyphen separated names (also known as...
Read more >
Can JavaScript Object Property Name Have Hyphens?
JavaScript object property names can be any string, including having hyphens in the name. However, object property names that are not valid ...
Read more >
Better handlng of hyphenated properties · Issue #4032
It is common in JavaScript to have hyphenated property names. For example: var obj = { "foo-bar" : "Foo Bar" }; The property...
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