Skip to content

Commit df5e157

Browse files
committed
chore: minor update in the isUrl() utility types
1 parent 833af42 commit df5e157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/base64.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const isFilePromise = (file: string | Buffer): Promise<boolean> =>
2323
});
2424
});
2525

26-
const isUrl = (file: string | Buffer): boolean => {
26+
const isUrl = (file: string): file is string => {
2727
if (typeof file !== 'string') return false;
2828
try {
2929
const url = new URL(file);

0 commit comments

Comments
 (0)