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

Auto importing custom types from a Directory #422

Closed
3 tasks done
nattyluke opened this issue Aug 22, 2023 · 3 comments · Fixed by unjs/unimport#268
Closed
3 tasks done

Auto importing custom types from a Directory #422

nattyluke opened this issue Aug 22, 2023 · 3 comments · Fixed by unjs/unimport#268
Labels
enhancement New feature or request

Comments

@nattyluke
Copy link

Clear and concise description of the problem

I have a types Directory with some interfaces and types which i want to be imported globally.
I dont know if this situation is covered by #61.
adding 'src/types' to the dirs array doesnt do anything. Im on 0.16.6.

Suggested solution

Types should be able to be made global as other functions/classes

Alternative

No response

Additional context

No response

Validations

@nattyluke nattyluke added the enhancement New feature or request label Aug 22, 2023
@LeoKun1231
Copy link

Is automatic import of custom types supported now?

@camhammel
Copy link

camhammel commented Sep 15, 2023

Was this functionality added? I can't seem to get it working within the import or dirs config - it would be helpful to have it added to the docs if so

@LefanTan
Copy link

LefanTan commented Nov 28, 2023

I'm observing the same behavior as @camhammel, type exports aren't being added to the global .ts. Would be great to have this functionality added 🙏

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

Successfully merging a pull request may close this issue.

4 participants