mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
[@sindresorhus/string-hash] Add types
This commit is contained in:
8
types/sindresorhus__string-hash/index.d.ts
vendored
Normal file
8
types/sindresorhus__string-hash/index.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
// Type definitions for @sindresorhus/string-hash 1.0
|
||||
// Project: https://github.com/sindresorhus/string-hash
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = stringHash;
|
||||
|
||||
declare function stringHash(input: string): number;
|
||||
@@ -0,0 +1,3 @@
|
||||
import stringHash = require('@sindresorhus/string-hash');
|
||||
|
||||
stringHash('🦄🌈'); // $ExpectType number
|
||||
28
types/sindresorhus__string-hash/tsconfig.json
Normal file
28
types/sindresorhus__string-hash/tsconfig.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"paths": {
|
||||
"@sindresorhus/string-hash": [
|
||||
"sindresorhus__string-hash"
|
||||
]
|
||||
},
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"sindresorhus__string-hash-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/sindresorhus__string-hash/tslint.json
Normal file
1
types/sindresorhus__string-hash/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user