-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cem-plugin-expanded-types: Error when analyzing types with index signatures #92
Comments
Do you have a repro I can test? Preliminary tests seem to work fine:
|
I'm having this issue here as well. And as @h4de5 described, creating a dedicated type fixes this indeed. |
Same error hit with an |
I'm sorry for the delay on this! The patch for it has gone out in version |
It looks like this is also working in my new package: https://wc-toolkit.com/documentation/type-parser/ |
@break-stuff does the new package supercede this one? Should i remove it? |
Yes, this will be deprecated and replaced with the WC Toolkit version. |
Excellent! Looking forward to the official deprecation :) |
It has officially been deprecated. 😁 |
When trying to analyze types like:
I get the following error:
the problematic regexp seems to be this:
cem-tools/packages/expanded-types/src/cem-plugin.ts
Line 133 in 8187639
when run, the
cleanPart
variable holds the string[key
which will not produce a valid regexp.when creating a dedicated type or interface for that, it works:
The text was updated successfully, but these errors were encountered: