DefinitelyTyped/types/quick-hash/index.d.ts
Florian Keller b1ca386416 Add types for multiple vigour.io projects (#35629)
Included projects:
* is-number-like
* quick-hash
* turbostatus
* vigour-ua
2019-05-22 09:07:08 -07:00

14 lines
513 B
TypeScript

// Type definitions for quick-hash 1.0
// Project: https://github.com/vigour-io/quick-hash#readme
// Definitions by: Florian Keller <https://github.com/ffflorian>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* Murmur hash optimized for performance, not collision avoidance.
* @param key the string to hash
* @param seed a seed for hashing
* @returns A string of 5 to 7 alpha-numeric characters
*/
declare function quickHash(key: string, seed?: number): string;
export = quickHash;