Unverified Commit c8a0aac2 authored by Pepijn Senders's avatar Pepijn Senders Committed by GitHub

chore: deprecate process.browser (#32862)

This value has been deprecated in favor of `typeof window !== 'undefined'` a long time ago ([ref](https://github.com/vercel/next.js/pull/7651)). We should also deprecate the value in the global types as it might give the wrong assumption that this value should still be used.
parent 7b524c1b
......@@ -3,6 +3,9 @@
// Extend the NodeJS namespace with Next.js-defined properties
declare namespace NodeJS {
interface Process {
/**
* @deprecated Use `typeof window` instead
*/
readonly browser: boolean
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment