Skip to content

Commit fe3e49f

Browse files
authoredJan 21, 2025··
fix(clerk-js): Use modal types for modal methods (#4931)
1 parent 4427c47 commit fe3e49f

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed
 

‎.changeset/gorgeous-suns-cheer.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/types': patch
3+
---
4+
5+
Update modal methods to use the correct types.

‎packages/types/src/clerk.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export interface Clerk {
155155
* Opens the Clerk SignIn component in a modal.
156156
* @param props Optional sign in configuration parameters.
157157
*/
158-
openSignIn: (props?: SignInProps) => void;
158+
openSignIn: (props?: SignInModalProps) => void;
159159

160160
/**
161161
* Closes the Clerk SignIn modal.
@@ -189,7 +189,7 @@ export interface Clerk {
189189
* Opens the Clerk SignUp component in a modal.
190190
* @param props Optional props that will be passed to the SignUp component.
191191
*/
192-
openSignUp: (props?: SignUpProps) => void;
192+
openSignUp: (props?: SignUpModalProps) => void;
193193

194194
/**
195195
* Closes the Clerk SignUp modal.
@@ -200,7 +200,7 @@ export interface Clerk {
200200
* Opens the Clerk UserProfile modal.
201201
* @param props Optional props that will be passed to the UserProfile component.
202202
*/
203-
openUserProfile: (props?: UserProfileProps) => void;
203+
openUserProfile: (props?: UserProfileModalProps) => void;
204204

205205
/**
206206
* Closes the Clerk UserProfile modal.
@@ -211,7 +211,7 @@ export interface Clerk {
211211
* Opens the Clerk OrganizationProfile modal.
212212
* @param props Optional props that will be passed to the OrganizationProfile component.
213213
*/
214-
openOrganizationProfile: (props?: OrganizationProfileProps) => void;
214+
openOrganizationProfile: (props?: OrganizationProfileModalProps) => void;
215215

216216
/**
217217
* Closes the Clerk OrganizationProfile modal.
@@ -222,7 +222,7 @@ export interface Clerk {
222222
* Opens the Clerk CreateOrganization modal.
223223
* @param props Optional props that will be passed to the CreateOrganization component.
224224
*/
225-
openCreateOrganization: (props?: CreateOrganizationProps) => void;
225+
openCreateOrganization: (props?: CreateOrganizationModalProps) => void;
226226

227227
/**
228228
* Closes the Clerk CreateOrganization modal.
@@ -233,7 +233,7 @@ export interface Clerk {
233233
* Opens the Clerk Waitlist modal.
234234
* @param props Optional props that will be passed to the Waitlist component.
235235
*/
236-
openWaitlist: (props?: WaitlistProps) => void;
236+
openWaitlist: (props?: WaitlistModalProps) => void;
237237

238238
/**
239239
* Closes the Clerk Waitlist modal.

0 commit comments

Comments
 (0)
Please sign in to comment.