Add types for @sindresorhus/fnv1a

This commit is contained in:
Dimitri Benin
2018-12-09 18:39:58 +01:00
parent e95e11dcf2
commit fc82512a8a
4 changed files with 41 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for @sindresorhus/fnv1a 1.0
// Project: https://github.com/sindresorhus/fnv1a
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = fnv1a;
declare function fnv1a(string: string): number;
@@ -0,0 +1,4 @@
import fnv1a = require('@sindresorhus/fnv1a');
// $ExpectType number
fnv1a('🦄🌈');
+28
View File
@@ -0,0 +1,28 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"paths": {
"@sindresorhus/fnv1a": [
"sindresorhus__fnv1a"
]
},
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"sindresorhus__fnv1a-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }