mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-15 14:30:22 +00:00
[next] Add statusCode to err object in NextContext (#40204)
Maintenance fix for `next@^8.0.0`.
This commit is contained in:
committed by
Nathan Shively-Sanders
parent
b59a18caf3
commit
5b30992fd5
Vendored
+1
-1
@@ -89,7 +89,7 @@ declare namespace next {
|
||||
/** Fetch Response object (client only) - from https://developer.mozilla.org/en-US/docs/Web/API/Response */
|
||||
jsonPageRes?: NodeResponse;
|
||||
/** Error object if any error is encountered during the rendering */
|
||||
err?: Error;
|
||||
err?: Error & { statusCode?: number };
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user