Y
Hacker News
new
|
ask
|
show
|
jobs
by
whazor
674 days ago
I don't see why the type casting (as HTMLButtonElement) is needed. Because document.createElement("button") returns HTMLButtonElement in TypeScript.