Skip to content

Commit 096a304

Browse files
committed
feat(ui): export Appearance type from root entry
1 parent 0a8725d commit 096a304

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@clerk/ui': patch
3+
'@clerk/upgrade': patch
4+
---
5+
6+
Export `Appearance` type from `@clerk/ui` root entry

packages/ui/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import type { Ui } from './internal';
22
import { UI_BRAND } from './internal';
33
import type { Appearance } from './internal/appearance';
44

5+
export type { Appearance } from './internal/appearance';
6+
57
import { ClerkUI } from './ClerkUI';
68

79
declare const PACKAGE_VERSION: string;

packages/upgrade/src/versions/core-3/changes/clerk-types-deprecation.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,10 @@ Update your imports:
1515
```
1616

1717
The `@clerk/types` package will continue to re-export types from `@clerk/shared/types` for backward compatibility, but new types will only be added to `@clerk/shared/types`.
18+
19+
**Note:** The `Appearance` type should be imported from `@clerk/ui` instead of `@clerk/shared/types`:
20+
21+
```diff
22+
- import type { Appearance } from '@clerk/types';
23+
+ import type { Appearance } from '@clerk/ui';
24+
```

0 commit comments

Comments
 (0)