diff --git a/types/sindresorhus__fnv1a/index.d.ts b/types/sindresorhus__fnv1a/index.d.ts new file mode 100644 index 0000000000..732d8cbd52 --- /dev/null +++ b/types/sindresorhus__fnv1a/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for @sindresorhus/fnv1a 1.0 +// Project: https://github.com/sindresorhus/fnv1a +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = fnv1a; + +declare function fnv1a(string: string): number; diff --git a/types/sindresorhus__fnv1a/sindresorhus__fnv1a-tests.ts b/types/sindresorhus__fnv1a/sindresorhus__fnv1a-tests.ts new file mode 100644 index 0000000000..9c5a525d85 --- /dev/null +++ b/types/sindresorhus__fnv1a/sindresorhus__fnv1a-tests.ts @@ -0,0 +1,4 @@ +import fnv1a = require('@sindresorhus/fnv1a'); + +// $ExpectType number +fnv1a('🦄🌈'); diff --git a/types/sindresorhus__fnv1a/tsconfig.json b/types/sindresorhus__fnv1a/tsconfig.json new file mode 100644 index 0000000000..6ac527a578 --- /dev/null +++ b/types/sindresorhus__fnv1a/tsconfig.json @@ -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" + ] +} diff --git a/types/sindresorhus__fnv1a/tslint.json b/types/sindresorhus__fnv1a/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/sindresorhus__fnv1a/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }