Skip to content

Commit 7c383f5

Browse files
chore: avoid type error in certain environments
1 parent 5b79c96 commit 7c383f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/internal/uploads.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export const createForm = async <T = Record<string, unknown>>(
138138

139139
// We check for Blob not File because Bun.File doesn't inherit from File,
140140
// but they both inherit from Blob and have a `name` property at runtime.
141-
const isNamedBlob = (value: object) => value instanceof Blob && 'name' in value;
141+
const isNamedBlob = (value: unknown) => value instanceof Blob && 'name' in value;
142142

143143
const isUploadable = (value: unknown) =>
144144
typeof value === 'object' &&

0 commit comments

Comments
 (0)