-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(nextjs): Ambient global.d.ts (#4485)
- Loading branch information
1 parent
0cab66e
commit 9bd8645
Showing
2 changed files
with
20 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |