Skip to content
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

mongoose and jasonwebtocket autoimport #280

Open
1 task
theguriev opened this issue Sep 23, 2023 · 2 comments
Open
1 task

mongoose and jasonwebtocket autoimport #280

theguriev opened this issue Sep 23, 2023 · 2 comments

Comments

@theguriev
Copy link

Describe the feature

How do you guys do something like this? Why it works in case of zod but not in case of mongoose and jasonwebtocket?

{
imports: [
        {
          from: "jsonwebtoken",
          name: "default",
          as: "jwt",
        },
      ],
      presets: [
        {
          from: "zod",
          imports: ["z"],
        },
        {
          from: "mongoose",
          imports: ["model"],
        }
      ],
}
image image image

Additional information

  • Would you be willing to help implement this feature?
@theguriev
Copy link
Author

and one more question if you don't mind...

How to import types?

Like:

{
          from: "h3",
          imports: ["H3Event", "EventHandlerRequest"],
        },

@gkTim
Copy link

gkTim commented Dec 28, 2023

@theguriev Have found this example:

// example type import { from: 'vue-router', imports: ['RouteLocationRaw'], type: true, },

So could you try to add an type: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants