Files
koodo-reader/types/index.d.ts
T
troyeguo e0660be64e Add @mozilla/readability dependency and enhance HTML import functionality in ImportLocal component
- Introduced the @mozilla/readability library to improve HTML content extraction from URLs.
- Enhanced the importHtmlFromURL method to fetch, parse, and sanitize HTML content, ensuring relative URLs are converted to absolute.
- Added utility functions for escaping HTML and making URLs absolute within the imported content.
- Updated type definitions to include Readability class for TypeScript support.
2026-06-01 11:16:08 +08:00

18 lines
381 B
TypeScript

declare module "rc-color-picker" {}
declare module "react-tooltip" {
export const Tooltip: any;
export default Tooltip;
}
declare module "react" {
interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
webkitdirectory?: string;
}
}
declare module "@mozilla/readability" {
export class Readability {
constructor(document: Document);
parse(): any;
}
}