mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Fix error TS2497 on import * as X from 'md5': (#15584)
* Add support for es6 import syntax * Remove bad test name * Remove old test from tsconfig
This commit is contained in:
Vendored
+7
-4
@@ -1,15 +1,18 @@
|
||||
// Type definitions for md5 v2.1.0
|
||||
// Project: https://github.com/pvorb/node-md5
|
||||
// Definitions by: Bill Sourour <https://github.com/arcdev1>
|
||||
// Definitions by: Bill Sourour <https://github.com/arcdev1>, Cameron Crothers <https://github.com/jprogrammer>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
/**
|
||||
* js function for hashing messages with MD5
|
||||
*
|
||||
*
|
||||
* @param {(string | Buffer)} message - a string or buffer to hash
|
||||
* @returns {string} the resultant MD5 hash of the given message
|
||||
*/
|
||||
declare function main(message: string | Buffer): string;
|
||||
export = main;
|
||||
declare function md5(message: string | Buffer): string;
|
||||
|
||||
declare namespace md5 {}
|
||||
|
||||
export = md5;
|
||||
|
||||
@@ -19,4 +19,4 @@
|
||||
"index.d.ts",
|
||||
"md5-tests.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user