Add ethereumjs-testing def

This commit is contained in:
Jaco Greeff 2018-11-21 10:51:35 +01:00
parent ddf50f4c3f
commit 000fc19742
5 changed files with 34 additions and 1 deletions

16
types/ethereumjs-testing/index.d.ts vendored Normal file
View File

@ -0,0 +1,16 @@
// Type definitions for keccak 1.0.4
// Project: https://github.com/ethereumjs/ethereumjs-testing
// Definitions by: Jaco Greeff <https://github.com/jacogr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module 'ethereumjs-testing' {
type Tests = {
[index: string]: {
in: string,
out: string,
root: string
}
};
export const getSingleFile: (name: string) => Tests;
}

View File

@ -0,0 +1,16 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": ["es6"],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": ["../"],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": ["index.d.ts", "ethereumjs-testing-tests.ts"]
}

View File

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

View File

@ -12,5 +12,5 @@
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": ["index.d.ts", "bn.js-tests.ts"]
"files": ["index.d.ts", "keccak-tests.ts"]
}