Skip to content

Commit d2a52ce

Browse files
Update packages/scoped-custom-element-registry/src/types.d.ts
Co-authored-by: Justin Fagnani <[email protected]>
1 parent 436c5a7 commit d2a52ce

File tree

1 file changed

+8
-0
lines changed
  • packages/scoped-custom-element-registry/src

1 file changed

+8
-0
lines changed

packages/scoped-custom-element-registry/src/types.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ declare global {
4444

4545
// https://dom.spec.whatwg.org/#dictdef-importnodeoptions
4646
interface ImportNodeOptions {
47+
/**
48+
* A boolean flag, whose default value is `false`, which controls whether to include the entire DOM
49+
* subtree of the `externalNode` in the import. `selfOnly` has the opposite effect of supplying a
50+
* boolean as the `options` argument.
51+
*
52+
* If `selfOnly` is set to `false`, then `externalNode` and all of its descendants are copied.
53+
* If `selfOnly` is set to `true`, then only `externalNode` is imported — the new node has no children.
54+
*/
4755
selfOnly?: boolean;
4856
customElementRegistry?: CustomElementRegistry;
4957
}

0 commit comments

Comments
 (0)