File tree Expand file tree Collapse file tree 3 files changed +23
-21
lines changed
Expand file tree Collapse file tree 3 files changed +23
-21
lines changed Original file line number Diff line number Diff line change 1- /**
2- * @typedef {import('hast').Element } Element
3- */
4-
5- /**
6- * @typedef {import('hast-util-is-element').AssertPredicate<Element & {tagName: 'script' | 'template'}> } AssertScriptOrTemplate
7- */
8-
9- import { convertElement } from 'hast-util-is-element'
10-
11- /**
12- * Check if a node is a script-supporting element.
13- *
14- * @type {AssertScriptOrTemplate }
15- * @param value
16- * Thing to check (typically `Node`).
17- * @returns
18- * Whether `value` is a script-supporting element.
19- */
20- // @ts -expect-error Sure, the assertion matches.
21- export const scriptSupporting = convertElement ( [ 'script' , 'template' ] )
1+ export { scriptSupporting } from './lib/index.js'
Original file line number Diff line number Diff line change 1+ /**
2+ * @typedef {import('hast').Element } Element
3+ */
4+
5+ /**
6+ * @typedef {import('hast-util-is-element').AssertPredicate<Element & {tagName: 'script' | 'template'}> } AssertScriptOrTemplate
7+ */
8+
9+ import { convertElement } from 'hast-util-is-element'
10+
11+ /**
12+ * Check if a node is a script-supporting element.
13+ *
14+ * @type {AssertScriptOrTemplate }
15+ * @param value
16+ * Thing to check (typically `Node`).
17+ * @returns
18+ * Whether `value` is a script-supporting element.
19+ */
20+ // @ts -expect-error Sure, the assertion matches.
21+ export const scriptSupporting = convertElement ( [ 'script' , 'template' ] )
Original file line number Diff line number Diff line change 2929 "main" : " index.js" ,
3030 "types" : " index.d.ts" ,
3131 "files" : [
32+ " lib/" ,
3233 " index.d.ts" ,
3334 " index.js"
3435 ],
You can’t perform that action at this time.
0 commit comments