blueimp-md5.d.ts
ํ์ผ์ ์ฌ์ฉํด ๋ณด์๋๋ฐ ๋ฌธ์ ๊ฐ ์์์ต๋๋ค.xxxx/xxxx.d.ts
๋ํด ์ด์ผ๊ธฐํ๊ณ ์ถ์ต๋๋ค.hashed = require("blueimg-md5").md5("my string")
์ ๊ฐ์ ์ ์ ํ์ผ์ ์ฌ์ฉํ๋ ค๊ณ ํ๋ฉด ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค. // Use the following version if you installed the package with npm:
var md5 = require("blueimp-md5"),
query = url.parse(req.url).query;
// Calculate and print the MD5 hash of the url query:
res.end(md5(query));
์ ์๋ ๋ค์๊ณผ ๊ฐ์์ผ ํฉ๋๋ค.
declare module 'blueimp-md5' {
function md5(value: string, key?: string, raw?: boolean): string;
export = md5;
}
๋ณด๋ค๋
declare module 'blueimp-md5' {
export function md5(value: string, key?: string, raw?: boolean): string;
}
๋๋ ๊ฐ์ ๋ฌธ์ ๋ฅผ ์๊ณ ์์ด. ;| ์ ์๋ ์ฌ์ ํ ๋์ผํฉ๋๋ค.
์ ๋ ์.
ํ ๋ฆฌํ์คํธ๋ฅผ ๋ณด๋ด์ฃผ์ธ์. ๊ฒํ ํ๊ฒ ์ต๋๋ค.