How to add dom in lib?

When i use document. there’s an error that TS2584 : Cannot find name ‘document’. Do you need to change your target library? Try changing the lib compiler option to include ‘dom’.

For it, Do i have to fix tsconfig.json ?
Or is there something other solution? i need help… :sob::sob::sob::sob::sob:

Velo understands all of Javascript, except for anything that accesses the DOM. Accessing document elements such as div, span, button, etc is off-limits. The way to access elements on the page is only through $w.

Cannot find name 'document'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 
I get this message what to do or how to do it?

You can’t access the DOM trough regular Velo, you have to use a Custom Element.