diff --git a/src/index.ts b/src/index.ts index 94b8f2d49e..ed90306ef0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -21,7 +21,7 @@ export type { * * @category DOM Node */ -export type { Node, NodeWithChildren, Element, Document } from 'domhandler'; +export type { Node, AnyNode, ParentNode, Element, Document } from 'domhandler'; export type { CheerioAPI } from './load.js'; import { getLoad } from './load.js'; @@ -83,7 +83,7 @@ import { filters, pseudos, aliases } from 'cheerio-select'; */ export const select = { filters, pseudos, aliases }; -export * from './static.js'; +export { html, xml, text } from './static.js'; import * as staticMethods from './static.js'; diff --git a/src/slim.ts b/src/slim.ts index 7bdd090308..5237089cc2 100644 --- a/src/slim.ts +++ b/src/slim.ts @@ -6,7 +6,8 @@ export type { CheerioOptions, HTMLParser2Options, Node, - NodeWithChildren, + AnyNode, + ParentNode, Element, Document, } from '.';