Skip to content

Commit feb90bc

Browse files
committed
fix onError type
1 parent 99d4cab commit feb90bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class StaticRouters {
5050
preloadScript?: string;
5151
bootstrapModules?: string[];
5252
context?: T;
53-
onError(error: unknown, errorInfo: React.ErrorInfo): string | void;
53+
onError?(error: unknown, errorInfo: React.ErrorInfo): string | void;
5454
}
5555
): Promise<Response | null> {
5656
const { pathname, search } = new URL(request.url);

0 commit comments

Comments
 (0)