-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Figure out how to make the client .re.mdx extension work. #2
Comments
This sounds interesting for my multi-slide deck implementation 🤔 But I'm not sure I'm understanding completely. What does adding types for the It looks like this is the workaround for now, to have a separate remdx/packages/create-remdx/template/slides.re.mdx.d.ts Lines 1 to 11 in 851b854
|
The point of these files is so that when you import a Normally it's possible to extend the extensions that TypeScript is aware of by providing these types from within the remdx package, similar to Vite's client types: https://vitejs.dev/guide/features#client-types I tried various solutions but for some reason I could never figure out a way to just make it work and I ran out of time. As a "hack" I opted to put the |
Alright, got a first incomplete (but working) version here: |
This should work using TypeScript reference types to
declare module "*.re.mdx"
but somehow it doesn't get picked up in the example project.The text was updated successfully, but these errors were encountered: