File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import { expectTypeOf } from "expect-type";
66import type { AnyDef , GetAppData } from "../types" ;
77import { zodSchemaAdapter } from "../adapters/zod-schema-adapter" ;
88import { HttpStatus } from "../status" ;
9- import "./file-list-polyfill" ;
109
1110// Silence console.error logs
1211globalThis . console . error = mock ( ) ;
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import { expectTypeOf } from "expect-type";
77import { z } from "zod/v4" ;
88import { HttpStatus } from "../status" ;
99import { ErrorResponse , NoResponse } from "../schema" ;
10- import "./file-list-polyfill" ;
1110
1211// Silence console.error logs
1312globalThis . console . error = mock ( ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { z } from "zod/v4";
55import type { StandardSchemaV1 } from "@standard-schema/spec" ;
66import { ErrorResponse } from "../schema" ;
77import type { HttpStatus } from "../status" ;
8- import "./file-list-polyfill" ;
98
109describe ( "Types" , ( ) => {
1110 describe ( "MergeRoutes" , ( ) => {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export function smartSerialize(value: unknown):
2222 } ;
2323 }
2424
25- if ( value instanceof FileList ) {
25+ if ( typeof FileList !== "undefined" && value instanceof FileList ) {
2626 const serialized = new FormData ( ) ;
2727 for ( let i = 0 ; i < value . length ; i ++ ) {
2828 serialized . append ( "files" , value . item ( i ) ! ) ;
You can’t perform that action at this time.
0 commit comments