Skip to content

Commit

Permalink
fix(nextjs): Ambient global.d.ts (#4485)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekradko authored Nov 5, 2024
1 parent 0cab66e commit 9bd8645
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 23 deletions.
2 changes: 2 additions & 0 deletions .changeset/plenty-snakes-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
41 changes: 18 additions & 23 deletions packages/nextjs/src/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@
declare global {
interface Window {
__unstable__onBeforeSetActive: () => void | Promise<void>;
__unstable__onAfterSetActive: () => void | Promise<void>;
declare namespace NodeJS {
interface ProcessEnv {
CLERK_SECRET_KEY: string | undefined;
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: string | undefined;
NEXT_PUBLIC_CLERK_PROXY_URL: string | undefined;
NEXT_PUBLIC_CLERK_SIGN_IN_URL: string | undefined;
NEXT_PUBLIC_CLERK_SIGN_UP_URL: string | undefined;
NEXT_PUBLIC_CLERK_SIGN_IN_FORCE_REDIRECT_URL: string | undefined;
NEXT_PUBLIC_CLERK_SIGN_UP_FORCE_REDIRECT_URL: string | undefined;
NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL: string | undefined;
NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL: string | undefined;
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL: string | undefined;
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL: string | undefined;
}
}

declare global {
const PACKAGE_NAME: string;
const PACKAGE_VERSION: string;
namespace NodeJS {
interface ProcessEnv {
CLERK_SECRET_KEY: string | undefined;
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: string | undefined;
NEXT_PUBLIC_CLERK_PROXY_URL: string | undefined;
NEXT_PUBLIC_CLERK_SIGN_IN_URL: string | undefined;
NEXT_PUBLIC_CLERK_SIGN_UP_URL: string | undefined;
NEXT_PUBLIC_CLERK_SIGN_IN_FORCE_REDIRECT_URL: string | undefined;
NEXT_PUBLIC_CLERK_SIGN_UP_FORCE_REDIRECT_URL: string | undefined;
NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL: string | undefined;
NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL: string | undefined;
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL: string | undefined;
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL: string | undefined;
}
}
interface Window {
__unstable__onBeforeSetActive: () => void | Promise<void>;
__unstable__onAfterSetActive: () => void | Promise<void>;
}

export {};
declare const PACKAGE_NAME: string;
declare const PACKAGE_VERSION: string;

0 comments on commit 9bd8645

Please sign in to comment.