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:
tyfkda
2018-09-17 16:31:43 +09:00
committed by Ryan Cavanaugh
parent 373eab6d1c
commit e42f933081

View File

@@ -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 {}