Added 'hash-sum'.

This commit is contained in:
Daniel Rosenwasser
2018-08-21 14:28:44 -07:00
parent b77ae9d43b
commit 5711491c5b
4 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import sum = require("hash-sum");
sum(undefined);
sum(null);
sum({});
sum({ hello: "world" });
sum(100);
sum("");
sum(true);

8
types/hash-sum/index.d.ts vendored Normal file
View File

@@ -0,0 +1,8 @@
// Type definitions for hash-sum 1.0
// Project: https://github.com/bevacqua/hash-sum
// Definitions by: Daniel Rosenwasser <https://github.com/DanielRosenwasser>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = hash_sum;
declare function hash_sum(value: any): string;

View File

@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"hash-sum-tests.ts"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }