Merge pull request #6 from polkadot-js/jg-ethereumjs-testing

Add ethereumjs-testing def
This commit is contained in:
Jaco Greeff 2018-11-21 10:56:19 +01:00 committed by GitHub
commit 28c6bbd161
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"]
}