Skip to content

Commit bc02a16

Browse files
authored
change any to unknown
1 parent 4979d09 commit bc02a16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/register.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function register(classObject: CustomElement): void {
1818
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
1919
// @ts-ignore
2020
window[classObject.name] = customElements.get(name)
21-
} catch (e: any) {
21+
} catch (e: unknown) {
2222
// The only reason for window.customElements.define to throw a `NotSupportedError`
2323
// is if the element has already been defined.
2424
if (e instanceof DOMException && e.name === 'NotSupportedError') return

0 commit comments

Comments
 (0)