Skip to content

Commit

Permalink
Added default types for Enhanced.OnConnected generics
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDoge committed Oct 4, 2024
1 parent 7c19e2a commit f0f05bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "purify-js",
"version": "0.0.226",
"version": "0.0.227",
"workspaces": [
"./apps/*",
"./packages/*"
Expand Down
2 changes: 1 addition & 1 deletion packages/purify-js/lib/tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export type Enhanced<T extends HTMLElement = HTMLElement> = T & {
}
export namespace Enhanced {
export type OnDisconnected = () => void
export type OnConnected<T extends HTMLElement> = (element: Enhanced<T>) => void | OnDisconnected
export type OnConnected<T extends HTMLElement = HTMLElement> = (element: Enhanced<T>) => void | OnDisconnected
export type OffConnected = () => void
}

Expand Down

0 comments on commit f0f05bc

Please sign in to comment.