Skip to content

Fix interfaces.d.ts not being found#198

Merged
nicknisi merged 2 commits intoworkos:mainfrom
spookyuser:type-fix
Feb 10, 2025
Merged

Fix interfaces.d.ts not being found#198
nicknisi merged 2 commits intoworkos:mainfrom
spookyuser:type-fix

Conversation

@spookyuser
Copy link
Contributor

This fixes #181 for me

@nicknisi
Copy link
Member

@spookyuser Thanks for the contribution! I'm wondering if it would also solve your needs if the types were exported through the code?

// inside src/index.ts

export * from './interfaces.js';

This way, you'd be able to access the types straight from the main package import:

import { type UserInfo } from "@workos-inc/authkit-nextjs";

@spookyuser
Copy link
Contributor Author

No problem! Sure I think that would work let me just double check

@spookyuser
Copy link
Contributor Author

It worked great thank you, I updated the pr with that export instead of changing the package.json

@nicknisi nicknisi merged commit 7229c7f into workos:main Feb 10, 2025
4 checks passed
@nicknisi
Copy link
Member

@spookyuser Thanks! This is included in v1.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Interfaces cannot be found in 1.1.0

2 participants