Use minified Parse SDK with Typescript

I’m using the minified version of the Parse SDK in a Web project:

import Parse from 'parse/dist/parse.min.js'

(I am forced to use the minified version due to a bug that occurs when using the non-minified Parse library in a Vite project, as is described here.)

Unfortunately, this import apparently is not supported by the type definitions from @types/parse – i.e. Typescript considers the import to be untyped.

Is there a way to get the types working with the minified SDK?
(Fixing the linked Vite issue would be even better of course :nerd_face:)

A solution has been provided in another thread.