mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Add types for compute-argmax (#40313)
* Add types for compute-argmax * Update types/compute-argmax/index.d.ts Co-Authored-By: Dmitry Demensky <10235949+demensky@users.noreply.github.com>
This commit is contained in:
committed by
Pranav Senthilnathan
co-authored by
Dmitry Demensky
parent
f380829c5c
commit
1fa034cbd8
@@ -0,0 +1,4 @@
|
||||
import compute = require('compute-argmax');
|
||||
|
||||
const data = [3, 2, 5, 2, 5];
|
||||
const idx: number[] = compute(data);
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// Type definitions for compute-argmax 1.0
|
||||
// Project: https://github.com/compute-io/argmax
|
||||
// Definitions by: Eric Crosson <https://github.com/EricCrosson>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function argmax(values: ArrayLike<number>): number[];
|
||||
|
||||
export = argmax;
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"compute-argmax-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user