Lesson 16 of 24 · +110 xp

Type Assertion

Tell the compiler.

Explained simply

Your task

Write: const el = document.getElementById('app') as HTMLDivElement;

as.ts
← Back