mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Change md5 declaration to accepts Array<number> (#28891)
md5 accepts not only `string | Buffer`, but also `Array<number>` from the beginning: https://github.com/pvorb/node-md5/blob/master/md5.js#L19
This commit is contained in:
2
types/md5/index.d.ts
vendored
2
types/md5/index.d.ts
vendored
@@ -11,7 +11,7 @@
|
||||
* @param {(string | Buffer)} message - a string or buffer to hash
|
||||
* @returns {string} the resultant MD5 hash of the given message
|
||||
*/
|
||||
declare function md5(message: string | Buffer): string;
|
||||
declare function md5(message: string | Buffer | Array<number>): string;
|
||||
|
||||
declare namespace md5 {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user