mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
17 lines
304 B
TypeScript
17 lines
304 B
TypeScript
import * as md5 from "md5-file";
|
|
import * as md5Promise from "md5-file/promise";
|
|
|
|
// $ExpectType void
|
|
md5("test.txt", (err, hash) => {
|
|
return;
|
|
});
|
|
|
|
// $ExpectType string
|
|
md5.sync("text.txt");
|
|
|
|
// $ExpectType Promise<string>
|
|
md5Promise("test.txt");
|
|
|
|
// $ExpectType string
|
|
md5Promise.sync("text.txt");
|