From 204195a11d26a903666ac33e40d3dbfbac99d464 Mon Sep 17 00:00:00 2001 From: PepijnSenders Date: Mon, 27 Dec 2021 17:47:58 -0500 Subject: [PATCH] chore: deprecate process.browser --- packages/next/types/global.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/next/types/global.d.ts b/packages/next/types/global.d.ts index 56c6f92f3ebb..cbaceebc3b11 100644 --- a/packages/next/types/global.d.ts +++ b/packages/next/types/global.d.ts @@ -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 }