-
Notifications
You must be signed in to change notification settings - Fork 1.3k
DNM: chore: TS explicit module boundary starters #8389
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
base: main
Are you sure you want to change the base?
Conversation
Build successful! 🎉 |
I think it should be fine to run |
Right, but we could run a different config setup against it possibly. I'm not sure everyone wants all the extra type definitions that come with explicit module boundaries, it's pretty noisy as you can see, basically all exported types are duplicated. |
Build successful! 🎉 |
I see, that makes sense. I'll need to take a look at the config more closely to see what a good middle ground is |
@@ -29,18 +29,18 @@ export const fieldBorderStyles = tv({ | |||
true: 'border-gray-200 dark:border-zinc-700 forced-colors:border-[GrayText]' | |||
} | |||
} | |||
}); | |||
}) as any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
did you try adding it to the "exclude" list? |
Yes, I tried adding it to the exclude list. But I don't think we actually want to exclude it, unless we want a separate typecheck for it that doesn't do module boundaries |
I thought that was what you were asking. The starters do have their own separate tsconfigs too, so I think they do get type checked separately already. |
Build successful! 🎉 |
You would think that based on them having their own tsconfig, however, if I turn on the isolatedDeclarations in our root config, suddenly these files start failing. Adding to exclude doesn't do anything, I think because of the If I remove the paths, then dev/docs/pages starts failing because it imports from the starters and suddenly it can't find them. Do things change enough with your new docs that I should hold off on these? |
Yes, unless we want to fix all the |
Closes
Same test instructions as #8375
Require some opinions here, should the starters adhere to this? For some reason they are checked during
tsc
.If they should, then do we want ReactNode? or JSX.Element?
I think it should be ReactNode because newer versions of React appear to prefer that.
I think it's being process by TS due to our tsconfig
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project: