next-auth
next-auth copied to clipboard
chore: export adapter types
โ๏ธ Reasoning
What changes are being made? What feature/bug is being fixed here?
Export types for adapters were missing from the exports
filed in package.json
and are added by this PR.
๐งข Checklist
- [ ] Documentation
- [ ] Tests
- [ ] Ready to be merged
๐ซ Affected issues
Please scout and link issues that might be solved by this PR.
Fixes: INSERT_ISSUE_LINK_HERE
๐ Resources
- Contributing guidelines
- Code of conduct
- Contributing to Open Source
The latest updates on your projects. Learn more about Vercel for Git โ๏ธ
Name | Status | Preview | Comments | Updated |
---|---|---|---|---|
auth-docs | โ Failed (Inspect) | Feb 20, 2023 at 7:15AM (UTC) |
@balazsorban44 TypeScript extends how exports
is used in node to also include type info. See an example here.
While this example isn't the exact same as the use-case in this pull request, it does show that exports
is also meant to be used for types.
Currently, there is no way for consumers to directly import the types defined in adapters.ts
. This PR enables users who need them in their code to explicitly import them without adding to the default public API surface. An alternative approach could be to add export * from './adapters';
to index.ts
, which would just make the types in adapters.ts
part of the default public API of the library.
@balazsorban44 any chance to get this merged?
@Dwlad90 is attempting to deploy a commit to the authjs Team on Vercel.
A member of the Team first needs to authorize it.
We have exported this in our new package
@auth/core
- do you consider switching? Otherwise, could you please open a new PR to v4 (or fix this one)? That is where we accept PRs tonext-auth
, moving forward. Sorry for the inconvenience ๐โโ๏ธ
@ThangHuuVu
We tried a new package @auth/core
and it doesn't work in the our project because of the module
type of the package.
I've updated this pull request and waiting it to be merged.
Thank you for the conversation!
hey @Dwlad90 could you please reopen the PR against v4 branch? I'm closing this one, sorry for the inconvenience ๐