microlinkhq / metascraper

Get unified metadata from websites using Open Graph, Microdata, RDFa, Twitter Cards, JSON-LD, HTML, and more.
https://metascraper.js.org
MIT License
2.35k stars 168 forks source link

Add types for metascraper packages #676

Closed Kikobeats closed 11 months ago

Kikobeats commented 11 months ago

Now that we have well types for metascraper package:

https://github.com/microlinkhq/metascraper/blob/master/packages/metascraper/src/index.d.ts

It's also necessary to add types per every metascraper-* package. Similar to:

declare module 'metascraper-*' {
  export default function rules(): import('metascraper').RuleSet;
}

but also declaring the options available in every package.