mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Added Edmonds-Blossom type (#34741)
* Added Edmonds-Blossom type * updated tsconfig * fixed tsconfig.json * added noEmit * added forceConsistentCasingInFileNames * fixed urls * fixed types * fixed lib * added tests * fixed tests * fixed test * added ts version * fix test
This commit is contained in:
parent
9dccfb693f
commit
a0cde1d10f
7
types/edmonds-blossom/edmonds-blossom-tests.ts
Normal file
7
types/edmonds-blossom/edmonds-blossom-tests.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import blossom from "edmonds-blossom";
|
||||
const data = [
|
||||
[0, 1, 6],
|
||||
[0, 2, 10],
|
||||
[1, 2, 5]
|
||||
];
|
||||
blossom(data); // $ExpectType number[]
|
||||
7
types/edmonds-blossom/index.d.ts
vendored
Normal file
7
types/edmonds-blossom/index.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
// Type definitions for edmonds-blossom 1.0
|
||||
// Project: https://github.com/mattkrick/EdmondsBlossom
|
||||
// Definitions by: John Jackson <https://github.com/johnridesabike>
|
||||
// Definitions: https://github.com/DefinitelyTyped/edmonds-blossom
|
||||
// TypeScript Version: 2.7
|
||||
export = blossom;
|
||||
declare function blossom(edges: number[][], maxCardinality?: number): number[];
|
||||
24
types/edmonds-blossom/tsconfig.json
Normal file
24
types/edmonds-blossom/tsconfig.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"esModuleInterop": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"edmonds-blossom-tests.ts"
|
||||
]
|
||||
}
|
||||
3
types/edmonds-blossom/tslint.json
Normal file
3
types/edmonds-blossom/tslint.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user