I would like to ask ts how to write d.ts when importing the js file of a single function.

the md5 library is needed in the project, and the front end is not Node,. Because of the project, you can"t use npm and then webpack transfer.

The md5 library used by

is this
https://github.com/blueimp/Ja.

.

used in ts

class Md5 {
    md5(data:string): string;
}

let md5 = new Md5

export let md5 = md5.md5
The current usage of

is very strange. Because this derives the use of md5.md5 ("asaaa").
so I would like to ask how to export directly to the ts file to achieve this effect md5 ("aaa")

Mar.03,2021

export default
Menu