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
What are the suggested types for the mdx.tsx definitions? (app/components/mdx.tsx)
I'm using the blog for inspiration. I'm using strict typing on my tsconfig.jsx, so I'm getting a ton of errors like X has implicit type any and whatnot.
I've managed to "guess" a few of the types like for the table and heading, for example.
Any help is greatly appreciated! I would like to keep that strict typing on in the tsconfig.json if possible. The reason why is because I use Vercel, which checks these types of rules, so my builds have been failing even though the development server is working.
The text was updated successfully, but these errors were encountered:
What are the suggested types for the
mdx.tsx
definitions? (app/components/mdx.tsx)I'm using the blog for inspiration. I'm using strict typing on my
tsconfig.jsx
, so I'm getting a ton of errors likeX
has implicit typeany
and whatnot.I've managed to "guess" a few of the types like for the table and heading, for example.
For the
CustomMDX
component, I'm super stuck! I have something like this, but nowprops.components
doesn't exist on{}
.And let's say that I removed the
props.components
spread. I get an error like this.Any help is greatly appreciated! I would like to keep that strict typing on in the
tsconfig.json
if possible. The reason why is because I use Vercel, which checks these types of rules, so my builds have been failing even though the development server is working.The text was updated successfully, but these errors were encountered: