-
Notifications
You must be signed in to change notification settings - Fork 71
Unsupported class names #39
Comments
Don't use "in" as a class name seems the obvious answer, however it's part of bootstrap so I don't have control over that beyond "don't use bootstrap" which isn't much of an option. A way to tell 'typings-for-css-modules-loader' to ignore any classes with reserved keyword names would be fine by me. Or someway to have them automatically renamed. |
hum good question - not sure if there is a way to make typescript ignore the "in" ? |
using non named exports is a workaround |
except for me that's broken per #20 |
@timse @scamden I posted in #20 but there is a way I believe we can export reserved words as top-level exports:
This is basically |
Great module, and I got it working easily enough.
I'm currently importing the class names from bootstrap.less, and one of the classes is called
in
.'in' is a reserved keyword and so causes a validation error in the bootstrap.less.d.ts file.
I had a look through the options, but there didn't appear to be an option that addresses this issue.
My 'webpack.config.js' section FWIW:
The text was updated successfully, but these errors were encountered: