Preliminary Checks
Reproduction
N/A
Publishable key
N/A
Description
The Clerk types overview documents importing shared types from @clerk/astro/types:
https://clerk.com/docs/reference/types/overview
import type { UserResource } from '@clerk/astro/types'
I reproduced this with @clerk/astro@4.0.11 and TypeScript 5.9.3.
Steps to reproduce
npm install @clerk/astro@4.0.11 typescript
Create index.ts:
import type { UserResource } from '@clerk/astro/types'
export type Example = UserResource
Run:
npx tsc --noEmit \
--module NodeNext \
--moduleResolution NodeNext \
--target ES2022 \
index.ts
Actual behavior
TypeScript reports:
error TS2614: Module '"@clerk/astro/types"' has no exported member 'UserResource'.
The package export map currently points ./types to:
That declaration contains the Astro integration’s default export rather than the shared Clerk types.
The intended declarations appear to be available at:
./dist/types/types/index.d.ts
Expected behavior
The documented type-only import should resolve and compile successfully:
import type { UserResource } from '@clerk/astro/types'
Environment
Preliminary Checks
I have reviewed the documentation: https://clerk.com/docs
I have searched for existing issues: https://github.com/clerk/javascript/issues
I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.
Reproduction
N/A
Publishable key
N/A
Description
The Clerk types overview documents importing shared types from
@clerk/astro/types:https://clerk.com/docs/reference/types/overview
I reproduced this with
@clerk/astro@4.0.11and TypeScript 5.9.3.Steps to reproduce
Create
index.ts:Run:
Actual behavior
TypeScript reports:
The package export map currently points
./typesto:That declaration contains the Astro integration’s default export rather than the shared Clerk types.
The intended declarations appear to be available at:
Expected behavior
The documented type-only import should resolve and compile successfully:
Environment