You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit feac5f3
Browse filesBrowse the repository at this point in the historyBrowse files
authored
docs(backend,shared): Generate typedoc output for backend docs (clerk#8853)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Sarah Soutoul <sarah@clerk.dev>
Co-authored-by: Jacek <jacek@clerk.dev>
Copy file name to clipboardExpand all lines: .typedoc/__tests__/__snapshots__/clerk-properties.mdx
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,14 @@
14
14
| <aid="proxyurl"></a> `proxyUrl`| <code>undefined \| string</code> |**Required for applications that run behind a reverse proxy**. Your Clerk app's proxy URL. Can be either a relative path (`/__clerk`) or a full URL (`https://<your-domain>/__clerk`). |
15
15
| <aid="publishablekey"></a> `publishableKey`|`string`| Your Clerk [Publishable Key](!publishable-key). |
16
16
| <aid="sdkmetadata"></a> `sdkMetadata`| <code>undefined \|\{ environment?: string; name: string; version: string; \}</code> | If present, contains information about the SDK that the host application is using. For example, if Clerk is loaded through `@clerk/nextjs`, this would be `{ name: '@clerk/nextjs', version: '1.0.0' }`. You don't need to set this value yourself unless you're [developing an SDK](/docs/guides/development/sdk-development/overview). |
17
+
|`sdkMetadata.environment?`|`string`| Typically this will be the `NODE_ENV` that the SDK is currently running in. |
18
+
|`sdkMetadata.name`|`string`| The npm package name of the SDK. |
19
+
|`sdkMetadata.version`|`string`| The npm package version of the SDK. |
17
20
| <aid="session"></a> `session`| <code>undefined \| null \|[SignedInSessionResource](/docs/reference/objects/session)</code> | The currently active `Session`, which is guaranteed to be one of the sessions in `Client.sessions`. If there is no active session, this field will be `null`. If the session is loading, this field will be `undefined`. |
18
21
| <aid="status"></a> `status`| <code>"error" \| "degraded" \| "loading" \| "ready"</code> | The status of the `Clerk` instance. Possible values are: <ul> <li>`"error"`: Set when hotloading `clerk-js` or `Clerk.load()` failed.</li> <li>`"loading"`: Set during initialization.</li> <li>`"ready"`: Set when Clerk is fully operational.</li> <li>`"degraded"`: Set when Clerk is partially operational.</li> </ul> |
|`telemetry.isDebug`|`boolean`| If `true`, telemetry events are only logged to the console and not sent to Clerk. |
24
+
|`telemetry.isEnabled`|`boolean`| Indicates whether telemetry is enabled. |
20
25
| <aid="uiversion"></a> `uiVersion`| <code>undefined \| string</code> | The version of `@clerk/ui` that is currently loaded, or `undefined` if the prebuilt UI has not been loaded yet. |
21
26
| <aid="user"></a> `user`| <code>undefined \| null \|[UserResource](/docs/reference/objects/user)</code> | A shortcut to `Session.user` which holds the currently active `User` object. If the session is `null` or `undefined`, the user field will match. |
22
27
| <aid="version"></a> `version`| <code>undefined \| string</code> | The Clerk SDK version number. |
Copy file name to clipboardExpand all lines: .typedoc/__tests__/__snapshots__/sign-in-future-resource-methods-email-link.mdx
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,3 +4,6 @@
4
4
| Property | Type | Description |
5
5
| ------ | ------ | ------ |
6
6
|`verification`| <code>null \|\{ createdSessionId: string; status: "expired" \| "failed" \| "verified" \| "client_mismatch"; verifiedFromTheSameClient: boolean; \}</code> | The verification status of the email link. This property is populated by reading query parameters from the URL after the user visits the email link. Returns `null` if no verification status is available. |
7
+
|`verification.createdSessionId`|`string`| The ID of the session that was created upon completion of the current sign-in. |
@@ -468,6 +482,33 @@ export function applyCatchAllMdReplacements(contents) {
468
482
.join('\n');
469
483
}
470
484
485
+
/**
486
+
* Walk a typedoc Type and return a flat list of property declarations to render as a merged table. Used by the `@expandProperties` flattener below to handle three shapes:
487
+
* - intersection types: walk each constituent
488
+
* - inline object literals (ReflectionType): take its declaration.children
489
+
* - named references (ReferenceType): take the target's children plus any properties contributed via type arguments, which captures the `Foo<{ ... }>` instantiation pattern where typedoc otherwise loses the generic parameter at the alias boundary.
490
+
*
491
+
* @param {import('typedoc').SomeType | undefined} type
492
+
* @param {Map<string, import('typedoc').Reflection>} reflectionsByName lookup for cross-package refs whose `.reflection` is not linked
* Flatten the `Foo<{...}>` generic-instantiation pattern into a single merged properties table when `Foo` opts in via `@expandProperties`. typedoc-plugin-markdown would otherwise render an empty page for these aliases because the resolved type is a `ReferenceType` with no inline declaration — see `member.declaration.js` in the plugin, which only walks `IntersectionType` sub-types and has no branch for top-level `ReferenceType`.
529
+
*
530
+
* Runs at `RendererEvent.BEGIN` rather than `EVENT_RESOLVE_END` because the resolve hook fires per package, and cross-package references (e.g. `@clerk/backend` types referencing `ClerkPaginationRequest` from `@clerk/shared`) only link up after typedoc merges packages.
531
+
*
532
+
* The opt-in tag lives on the wrapper type so we never accidentally flatten unrelated generic aliases (e.g. `SignInErrors = Errors<SignInFields>`).
0 commit comments