Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Jul 14, 2024
1 parent 8226d5d commit 3429e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const examples: SearchResult[] = [
},
].map((urlOrObject: { url: string; img: string } | string) => {
const url = typeof urlOrObject === 'object' ? urlOrObject.url : urlOrObject;
let type = 'file';
let type: SearchResult['type'] = 'file';
if (isYouTube(url)) {
type = 'youtube';
} else if (isMagnet(url)) {
Expand Down

0 comments on commit 3429e4f

Please sign in to comment.