docs(shared): Improve protect check parameter types and Typedoc output#9116
docs(shared): Improve protect check parameter types and Typedoc output#9116SarahSoutoul wants to merge 3 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 9c42ca5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 23 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Repository UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughAdds named ChangesProtect Check Param Types
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Comment |
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
API Changes Report
Summary
@clerk/sharedCurrent version: 4.25.1 Subpath
|
wobsoriano
left a comment
There was a problem hiding this comment.
looks good, let me know if this is readhy to merge
Description
Improves the Typedoc/JSDoc output for the Protect check APIs on the future sign-in and sign-up flows after checking the latest Typedoc generated PR.
submitProtectCheck()previously accepted an inline object type ({ proofToken: string }), which Typedoc renders as an anonymous, undocumented parameter shape. This PR extracts that shape into named interfaces so the generated reference docs display a proper, documented parameter type:SignInFutureSubmitProtectCheckParams(signInFuture.ts)SignUpFutureSubmitProtectCheckParams(signUpFuture.ts)submitProtectCheck()on bothSignInFutureResourceandSignUpFutureResourceat the new interfacesAlso polishes the surrounding JSDoc:
ProtectCheckResourcedoc comments (signUpCommon.ts) to explain the end-to-end flow - load the SDK fromsdkUrl, initialize withtokenanduiHints, then submit the SDK's proof token viasubmitProtectCheck()— and clarifies each field.submitProtectCheckdescription onto a single line so it renders correctly.These are documentation/type-shape changes only; the runtime parameter shape (
{ proofToken: string }) is unchanged, so this is fully backwards-compatible.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
Summary by CodeRabbit
Summary by CodeRabbit