When working with a typescript method, the following code snippet is used:
some_existing_div.prepend(some_new_div)
This may result in an error message:
[ts] Property 'prepend' does not exist on type 'HTMLDivElement'.
However, despite what the error suggests, the `prepend` property does indeed exist as per https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/prepend.
Your tsconfig configuration includes:
"lib": [ "es7", "es2017", "dom", "dom.iterable" ],
You may need to add additional settings. What exactly needs to be added?
Moreover, in future instances where encountering a similar issue, how can it be resolved without seeking assistance? Is there a resource that maps new JavaScript features to the appropriate typescript libraries or any other approach for this situation?