We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 102dc92 commit f318e32Copy full SHA for f318e32
core/dom.ts
@@ -379,7 +379,7 @@ export namespace Lifecycle {
379
* @param element The element that was connected
380
* @returns Optional cleanup function that runs on disconnection
381
*/
382
- export type OnConnected<T extends HTMLElement = HTMLElement> = (element: T) => void | OnDisconnected;
+ export type OnConnected<T extends HTMLElement = HTMLElement> = (element: WithLifecycle<T>) => void | OnDisconnected;
383
384
/**
385
* Function type to manually remove a connection callback.
0 commit comments