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
[Components] Add flag for direct imports from components (#42600)
Adds a flag in `convex.json` called `codegen.useApiImports` that enables importing the component types directly from the component instead of blowing out the types.
This works by adding grabbing the import specifier we use to import the `convex.config` and using it to import from `/_generated/component.js` instead. This is the same for both sibling and non-sibling components.
I also added a sample project to exercise this functionality and confirm that it works as expected. We can add an NPM package once they get updated with the new entry point.
GitOrigin-RevId: a9a45f4c616ee1a1032acf984855007324036cbd
0 commit comments