Skip to content

Commit bd262f5

Browse files
committed
chore: Fix imports after cheerio upgrade
1 parent d123c03 commit bd262f5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/handlers/findFeed.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import cheerio, { CheerioAPI, Element, Node } from 'cheerio';
1+
import cheerio, { CheerioAPI } from 'cheerio';
2+
import type { Node, Element } from 'domhandler';
23
import normalizeUrl from 'normalize-url';
34

45
import { parseFromQuery, parseFromString } from './feed';
@@ -23,7 +24,7 @@ export function normalizeFeedLink(baseUrl: string, link: string | undefined) {
2324
}
2425

2526
function mapLinkTagToUrl(normalizedUrl: string) {
26-
return (linkTag: Node | Element) => {
27+
return (linkTag: Node | SVGSetElement) => {
2728
return normalizeFeedLink(
2829
normalizedUrl,
2930
(linkTag as Element).attribs['href']

0 commit comments

Comments
 (0)