-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Rename wasp-config
userSpec
to tsAppSpec
for clarity and consistency
#2737
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
Comments
As quoted from another PR:
It might be worthwhile to look into renaming the |
The only thing we should ask, without considering anything else, is What do we want the user to see? After we decide on that, we should adapt our internal code to work with it. We're the ones who should pay the price for good user DX. It's generally never desirable do design the public API to make it easier on ourselves. We sometimes make exceptions when the approaches greatly differ in complexity, but that's not the case here.
For me, it's |
Should be user DX first, I agree. If our DX is suffering here we can maybe try different module system:
In other words, extract ts app spec stuff out of the |
The confusion comes from the The main problem:
We can solve this by internally separating the At the same time, I don't want to lose information that the So here's an idea:
|
I agree with the given direction. |
@Martinsos would like if we could rename |
That works for me. User is an overloaded term in our domain, and public is clear. |
We've had an discussion around the current naming of
userSpec
, #2690 (comment). The end conses was that the name is misleading and potentially confusing.Problems with
userSpec
:AppSpec
.Agreed direction:
userSpec
→tsAppSpec
(short for TypeScript App Spec), as that is what it effectively is: a representation ofAppSpec
tailored for usage in TypeScript.appSpec
as-is. It is the canonical form and should not be renamed to something likehsAppSpec
, since its connection to Haskell is an implementation detail.The text was updated successfully, but these errors were encountered: