-
Notifications
You must be signed in to change notification settings - Fork 271
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
Plop does not handle | null
when adding lines
#380
Comments
It looks like this is due to: https://github.com/plopjs/plop/blob/main/packages/node-plop/src/actions/append.js This line does not handle the "|" (or) operator in Regex even though we need to be able to plop types into typescript. const lastPartWithoutDuplicates = lastPart.replace(
new RegExp(separator + stringToAppend, "g"),
""
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When appending a link to a typescript type with
| null
included, plop borks the remaining conditional types in the type definition.Action:
expected behavior:
Observed behavior:
The text was updated successfully, but these errors were encountered: