fix(types): re-export types from domhandler (#4353)

* [#4256] Re-export types from domhandler

* add `excludeExternals`

---------

Co-authored-by: Felix <188768+fb55@users.noreply.github.com>
This commit is contained in:
hexpunk
2026-02-10 03:14:04 -06:00
committed by GitHub
parent 703cfcaec1
commit 1c31dfe1e3
5 changed files with 18 additions and 1 deletions

View File

@@ -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';

View File

@@ -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';

View File

@@ -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;
/**

View File

@@ -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

View File

@@ -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",