I'm importing a Javascript package from npm that doesn't have a Typescript definition file anywhere. I'd like to create a local definition file that I'll eventually PR to DefinitelyTyped or the project itself.
I can't figure out where/how to create and place the definition file such that it will be found locally.
I could copy it into the node_modules/the-package directory, but it'll get clobbered during otherwise safe npm operations.
From observing tsc --traceResolution, I don't see a good way to do this, unless there's some way to use types or typings that I haven't figured.