mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Added declarations for 'array-uniq'. (#13127)
* Added declarations for 'array-uniq'. * Added linting for 'array-uniq'. * Removed patch number in 'array-uniq'.
This commit is contained in:
parent
618e065641
commit
7090b473b6
5
array-uniq/index-tests.ts
Normal file
5
array-uniq/index-tests.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import arrayUniq = require("array-uniq");
|
||||
|
||||
arrayUniq([1, 1, 2, 3, 3]);
|
||||
|
||||
arrayUniq(["foo", "foo", "bar", "foo"]);
|
||||
8
array-uniq/index.d.ts
vendored
Normal file
8
array-uniq/index.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
// Type definitions for array-uniq 1.0
|
||||
// Project: https://github.com/sindresorhus/array-uniq
|
||||
// Definitions by: Daniel Rosenwasser <https://github.com/DanielRosenwasser>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function arrayUniq<T>(arr: T[]): T[];
|
||||
|
||||
export = arrayUniq;
|
||||
19
array-uniq/tsconfig.json
Normal file
19
array-uniq/tsconfig.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"index-tests.ts"
|
||||
]
|
||||
}
|
||||
1
array-uniq/tslint.json
Normal file
1
array-uniq/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "../tslint.json" }
|
||||
Loading…
Reference in New Issue
Block a user