We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 039fac4 commit 078ae5eCopy full SHA for 078ae5e
src/index.ts
@@ -1,18 +1,19 @@
1
import { ElementInternals } from './element-internals';
2
import { CustomStateSet } from './CustomStateSet';
3
import './element-internals';
4
+import { IElementInternals } from './types';
5
export * from './types';
6
7
declare global {
8
interface Window {
9
CustomStateSet: typeof CustomStateSet;
10
ElementInternals: typeof ElementInternals;
11
}
- interface Element {
12
+ interface HTMLElement {
13
/**
14
* Attaches an ElementInternals instance to a custom element. Calling this method
15
* on a built-in element will throw an error.
16
*/
- attachInternals?: () => ElementInternals
17
+ attachInternals(): ElementInternals&IElementInternals;
18
19
0 commit comments