diff --git a/src/index-browser.mts b/src/index-browser.mts index 7ba86268..b8f89591 100644 --- a/src/index-browser.mts +++ b/src/index-browser.mts @@ -1,9 +1,13 @@ export type * from './types.js'; export type { + AnyNode, Cheerio, CheerioAPI, CheerioOptions, + Document, + Element, HTMLParser2Options, + ParentNode, } from './slim.js'; export { contains, merge } from './static.js'; diff --git a/src/index.ts b/src/index.ts index ad90a815..f9dad21b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,10 +7,14 @@ export * from './load-parse.js'; export { contains, merge } from './static.js'; export type * from './types.js'; export type { + AnyNode, Cheerio, CheerioAPI, CheerioOptions, + Document, + Element, HTMLParser2Options, + ParentNode, } from './slim.js'; import { adapter as htmlparser2Adapter } from 'parse5-htmlparser2-tree-adapter'; diff --git a/src/load.ts b/src/load.ts index 75e2827c..0bb4378c 100644 --- a/src/load.ts +++ b/src/load.ts @@ -10,6 +10,8 @@ import type { AnyNode, Document, Element, ParentNode } from 'domhandler'; import type { SelectorType, BasicAcceptedElems } from './types.js'; import { ElementType } from 'htmlparser2'; +export type { AnyNode, Document, Element, ParentNode } from 'domhandler'; + type StaticType = typeof staticMethods; /** diff --git a/src/slim.ts b/src/slim.ts index 440d0a6f..09ce49b8 100644 --- a/src/slim.ts +++ b/src/slim.ts @@ -13,7 +13,13 @@ export { contains, merge } from './static.js'; export type * from './types.js'; export type { Cheerio } from './cheerio.js'; export type { CheerioOptions, HTMLParser2Options } from './options.js'; -export type { CheerioAPI } from './load.js'; +export type { + AnyNode, + CheerioAPI, + Document, + Element, + ParentNode, +} from './load.js'; /** * Create a querying function, bound to a document created from the provided diff --git a/website/typedoc.json b/website/typedoc.json index 0f5bb11b..78e535c8 100644 --- a/website/typedoc.json +++ b/website/typedoc.json @@ -4,6 +4,7 @@ "tsconfig": "../tsconfig.typedoc.json", "readme": "none", "excludePrivate": true, + "excludeExternals": true, "plugin": ["typedoc-plugin-markdown", "typedoc-plugin-mdn-links"], "out": "src/content/docs/api", "entryFileName": "index",