Skip to content

Commit 5d166e5

Browse files
authored
fix(shared): Add JSDoc for unsafe_disableDevelopmentModeConsoleWarning (#7506)
1 parent 8887fac commit 5d166e5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.changeset/crisp-symbols-add.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/shared/src/types/clerk.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,14 @@ type ClerkOptionsNavigation =
10621062
};
10631063

10641064
type ClerkUnsafeOptions = {
1065+
/**
1066+
* Disables the console warning that is logged when Clerk is initialized with development keys.
1067+
*
1068+
* [WARNING] The development mode warning is intended to ensure that you don't go to production with a non-production
1069+
* Clerk instance. If you're disabling it, please make sure you don't ship with a non-production Clerk instance!
1070+
*
1071+
* More information: https://clerk.com/docs/guides/development/deployment/production
1072+
*/
10651073
unsafe_disableDevelopmentModeConsoleWarning?: boolean;
10661074
};
10671075

0 commit comments

Comments
 (0)