Closed Kassell closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
postcss-px-conversion | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 9, 2024 2:15pm |
Using an enumeration to define options prevents the user from passing in non-enumerated values
Thank you for submitting the PR and for your efforts to improve the project! We greatly appreciate your contribution to the code.
we have adopted a more optimal approach to handle union types, ensuring that the code remains flexible while enhancing readability and type safety.
You can see the changes in this commit: 1219854.
感谢您提交 PR 并为改进项目所做的努力!我们非常感谢您对代码的贡献。
我们采用了一种更优化的方法来处理联合类型,确保代码保持灵活性,同时增强了可读性和类型安全性。
You can see the changes in this commit: 1219854.
Have you considered what happens when users need to input values that aren't defined in the enumeration? Users would have to modify constants.ts in node_modules/postcss-px-conversion, or are you aware that enumeration classes cannot be inherited by other external classes, meaning that if users create a new enumeration and want to reference members of the old enumeration
感谢您提交 PR 并为改进项目所做的努力!我们非常感谢您对代码的贡献。
我们采用了一种更优化的方法来处理联合类型,确保代码保持灵活性,同时增强了可读性和类型安全性。
You can see the changes in this commit: 1219854.
Have you considered what happens when users need to input values that aren't defined in the enumeration? Users would have to modify constants.ts in node_modules/postcss-px-conversion, or are you aware that enumeration classes cannot be inherited by other external classes, meaning that if users create a new enumeration and want to reference members of the old enumeration
The union type solves this problem (string & object);
感谢您提交 PR 并为改进项目所做的努力!我们非常感谢您对代码的贡献。 我们采用了一种更优化的方法来处理联合类型,确保代码保持灵活性,同时增强了可读性和类型安全性。 You can see the changes in this commit: 1219854.
Have you considered what happens when users need to input values that aren't defined in the enumeration? Users would have to modify constants.ts in node_modules/postcss-px-conversion, or are you aware that enumeration classes cannot be inherited by other external classes, meaning that if users create a new enumeration and want to reference members of the old enumeration
The union type solves this problem (string & object);
I worked all day on Friday, and when I woke up on Saturday, I saw the notification that my PR was closed, which was a bit disappointing. I didn't pay too much attention to your reply at the time, and I'm very sorry for that. I see that the npm package has been updated 13 hours ago with a more elegant solution. That's great. I sincerely apologize for this.
Proposed changes
Types of changes
What types of changes does your code introduce? Put an
x
in the boxes that applyLinked Issues
Further comments