mirror of
https://github.com/cheeriojs/cheerio.git
synced 2026-02-25 23:25:17 +00:00
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:
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user