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:
Daniel Rosenwasser 2016-12-06 18:02:21 -08:00 committed by Andy
parent 618e065641
commit 7090b473b6
4 changed files with 33 additions and 0 deletions

View 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
View 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
View 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
View File

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