You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When editing the module, users will have typescript errors until the module is validating the types declares.
π Motivating Example
Improving the developer experience is a major issue for framework authors, I think it would significantly improve framework usages. I need it for helping users declaring handlers that will always have the same shape but I think frameworks like NextJS/React etc... would benefit from it too.
π» Use Cases
What do you want to use this for? Developer experience
What shortcomings exist with current approaches?
Currently the only way I know to do this is to use satisfies for each export of each module which relies on developers attention and is error prone:
export const x ... satifies MyModuleType[x];
export const y ... satifies MyModuleType[y];
What workarounds are you using in the meantime?
There is no alternative atm afaik.
The text was updated successfully, but these errors were encountered:
π Search Terms
I'd like for in a framework to be able to guide users while they create some standard components.
β Viability Checklist
β Suggestion
It could be something like:
When editing the module, users will have typescript errors until the module is validating the types declares.
π Motivating Example
Improving the developer experience is a major issue for framework authors, I think it would significantly improve framework usages. I need it for helping users declaring handlers that will always have the same shape but I think frameworks like NextJS/React etc... would benefit from it too.
π» Use Cases
Currently the only way I know to do this is to use satisfies for each export of each module which relies on developers attention and is error prone:
There is no alternative atm afaik.
The text was updated successfully, but these errors were encountered: