Skip to content

Commit baec1d9

Browse files
committed
fix: Update imports after cheerio upgrade
1 parent d123c03 commit baec1d9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/handlers/findFeed.ts

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

46
import { parseFromQuery, parseFromString } from './feed';
@@ -23,7 +25,7 @@ export function normalizeFeedLink(baseUrl: string, link: string | undefined) {
2325
}
2426

2527
function mapLinkTagToUrl(normalizedUrl: string) {
26-
return (linkTag: Node | Element) => {
28+
return (linkTag: Node | SVGSetElement) => {
2729
return normalizeFeedLink(
2830
normalizedUrl,
2931
(linkTag as Element).attribs['href']

0 commit comments

Comments
 (0)