You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[v3] Type error with the new error parameters #16722
declare global {namespaceApp{interfaceError{/** * A description, going in pair with a custom message. * When provided, the error code is shown much more subtly * and the description is shown where the title used to be. */description?: string;/** * Additional links to suggest going to in a button on the error page. * Internal links must be `resolve`d for safety purposes, while * external links can also be provided. */links?: {text: string;href: ResolvedPathname| `https://${string}`;}[];}}}
The deprecated error signature I used to use was:
error(status: number,body: Omit<App.Error,"status">&{status?: App.Error["status"];}): never
Activity
fix: adjust error overload for optional `App.Error` parameters