fix: type

This commit is contained in:
Ou 2024-10-19 19:13:46 +08:00
parent 4d2e0c3471
commit 2b07f16514

View File

@ -1,6 +1,6 @@
import type { RSSInfo } from "@shared/types"
import { XMLParser } from "fast-xml-parser"
import { $fetch } from "ofetch"
import type { RSSInfo } from "../types"
export async function rss2json(url: string): Promise<RSSInfo | undefined> {
if (!/^https?:\/\/[^\s$.?#].\S*/i.test(url)) return