Imagine you have a JavaScript library that exports some types for use (let's call it js1.js). You also have some TypeScript code sitting in a <script type="module"> tag that you want to use these types with (let's say ts1.ts). To make this work, you might write:
import {sometype} from "./js1.js"
However, in order for the compiler to recognize these types, you need a description file (ts1.d.ts). What should be included in this description file to ensure everything functions correctly?
I've searched online and in the TypeScript documentation but haven't found any helpful resources.