diff --git a/.changeset/gorgeous-suns-cheer.md b/.changeset/gorgeous-suns-cheer.md new file mode 100644 index 00000000000..77bb45975fb --- /dev/null +++ b/.changeset/gorgeous-suns-cheer.md @@ -0,0 +1,5 @@ +--- +'@clerk/types': patch +--- + +Update modal methods to use the correct types. diff --git a/packages/types/src/clerk.ts b/packages/types/src/clerk.ts index 3a98c31b73b..cbe87e5f0ac 100644 --- a/packages/types/src/clerk.ts +++ b/packages/types/src/clerk.ts @@ -156,7 +156,7 @@ export interface Clerk { * Opens the Clerk SignIn component in a modal. * @param props Optional sign in configuration parameters. */ - openSignIn: (props?: SignInProps) => void; + openSignIn: (props?: SignInModalProps) => void; /** * Closes the Clerk SignIn modal. @@ -190,7 +190,7 @@ export interface Clerk { * Opens the Clerk SignUp component in a modal. * @param props Optional props that will be passed to the SignUp component. */ - openSignUp: (props?: SignUpProps) => void; + openSignUp: (props?: SignUpModalProps) => void; /** * Closes the Clerk SignUp modal. @@ -201,7 +201,7 @@ export interface Clerk { * Opens the Clerk UserProfile modal. * @param props Optional props that will be passed to the UserProfile component. */ - openUserProfile: (props?: UserProfileProps) => void; + openUserProfile: (props?: UserProfileModalProps) => void; /** * Closes the Clerk UserProfile modal. @@ -212,7 +212,7 @@ export interface Clerk { * Opens the Clerk OrganizationProfile modal. * @param props Optional props that will be passed to the OrganizationProfile component. */ - openOrganizationProfile: (props?: OrganizationProfileProps) => void; + openOrganizationProfile: (props?: OrganizationProfileModalProps) => void; /** * Closes the Clerk OrganizationProfile modal. @@ -223,7 +223,7 @@ export interface Clerk { * Opens the Clerk CreateOrganization modal. * @param props Optional props that will be passed to the CreateOrganization component. */ - openCreateOrganization: (props?: CreateOrganizationProps) => void; + openCreateOrganization: (props?: CreateOrganizationModalProps) => void; /** * Closes the Clerk CreateOrganization modal. @@ -234,7 +234,7 @@ export interface Clerk { * Opens the Clerk Waitlist modal. * @param props Optional props that will be passed to the Waitlist component. */ - openWaitlist: (props?: WaitlistProps) => void; + openWaitlist: (props?: WaitlistModalProps) => void; /** * Closes the Clerk Waitlist modal.