mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Merge pull request #11528 from dlee-nvisia/master
Add typings for murmurhash3js
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
/// <reference path="./murmurhash3js.d.ts"/>
|
||||
|
||||
import * as murmurhash3js from 'murmurhash3js';
|
||||
|
||||
murmurhash3js.x86.hash32('string');
|
||||
murmurhash3js.x86.hash32('string with seed', 1337);
|
||||
|
||||
murmurhash3js.x86.hash128('string');
|
||||
murmurhash3js.x86.hash128('string with seed', 1337);
|
||||
|
||||
murmurhash3js.x64.hash128('string');
|
||||
murmurhash3js.x64.hash128('string with seed', 1337);
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
// Type definitions for murmurhash3js v3.0.1
|
||||
// Project: https://github.com/pid/murmurHash3js
|
||||
// Definitions by: Dave Lee <https://github.com/dlee-nvisia>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare module 'murmurhash3js' {
|
||||
export module x86 {
|
||||
function hash32(val: string, seed?: number): string;
|
||||
function hash128(val: string, seed?: number): string;
|
||||
}
|
||||
|
||||
export module x64 {
|
||||
function hash128(val: string, seed?: number): string;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user