Skip to content

Commit 48c1a41

Browse files
chore: avoid type error in certain environments
1 parent 0fafce3 commit 48c1a41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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 is Blob => value instanceof Blob && 'name' in value;
141+
const isNamedBlob = (value: unknown): value is Blob => value instanceof Blob && 'name' in value;
142142

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

0 commit comments

Comments
 (0)