Skip to content

Commit 68d41a4

Browse files
fix: correct typescript@^4.5.0 types
1 parent 392703b commit 68d41a4

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

Diff for: package-lock.json

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@
7575
"standard-version": "^9.0.0",
7676
"tsc": "^1.20150623.0",
7777
"tslib": "^2.1.0",
78-
"typescript": "^4.0.3"
78+
"typescript": "^4.5.2"
7979
}
8080
}

Diff for: src/element-internals.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export class ElementInternals implements IElementInternals {
176176
/**
177177
* Sets the element's validity. The first argument is a partial ValidityState object
178178
* reflecting the changes to be made to the element's validity. If the element is invalid,
179-
* the second argument sets the element's validition message.
179+
* the second argument sets the element's validation message.
180180
*
181181
* If the field is valid and a message is specified, the method will throw a TypeError.
182182
*/

Diff for: src/types.ts

+6
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,9 @@ export interface ICustomElement extends HTMLElement {
7878
}
7979

8080
export type LabelsList = NodeListOf<HTMLLabelElement> | [];
81+
82+
declare global {
83+
interface HTMLElement {
84+
attachInternals(): IElementInternals;
85+
}
86+
}

0 commit comments

Comments
 (0)