refactor: move CustomElement interface to types.d.ts
All checks were successful
Publish to npm / quality (push) Successful in 22s
Publish to npm / publish (push) Successful in 31s

This commit is contained in:
Astrian Zheng 2025-05-21 13:57:28 +10:00
parent 5092552de2
commit 5344a58e10
Signed by: Astrian
SSH Key Fingerprint: SHA256:rVnhx3DAKjujCwWE13aDl7uV6+9U1MvydLkNRXJrBiA
2 changed files with 4 additions and 5 deletions

View File

@ -1,8 +1,3 @@
interface CustomElement extends HTMLElement {
setState(key_path: string, value: unknown): void
getState(key_path: string): unknown
}
interface ComponentOptions { interface ComponentOptions {
tag: string tag: string
template: string template: string

4
src/types.d.ts vendored Normal file
View File

@ -0,0 +1,4 @@
interface CustomElement extends HTMLElement {
setState(key_path: string, value: unknown): void
getState(key_path: string): unknown
}