mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
ganache-core: Provides its own types (#39605)
This commit is contained in:
committed by
Jesse Trinity
parent
a3f77f97b0
commit
7eb9f13d9b
@@ -1362,6 +1362,12 @@
|
||||
"sourceRepoURL": "https://github.com/ascoders/gaea-model",
|
||||
"asOfVersion": "0.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "ganache-core",
|
||||
"typingsPackageName": "ganache-core",
|
||||
"sourceRepoURL": "https://github.com/trufflesuite/ganache-core#readme",
|
||||
"asOfVersion": "2.7.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "geolib",
|
||||
"typingsPackageName": "geolib",
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
import { provider } from 'ganache-core';
|
||||
|
||||
provider({ verbose: true, vmErrorsOnRPCResponse: false });
|
||||
21
types/ganache-core/index.d.ts
vendored
21
types/ganache-core/index.d.ts
vendored
@@ -1,21 +0,0 @@
|
||||
// Type definitions for ganache-core 2.1
|
||||
// Project: https://github.com/trufflesuite/ganache-core#readme
|
||||
// Definitions by: Leonid Logvinov <https://github.com/LogvinovLeon>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.4
|
||||
|
||||
import { Provider } from 'ethereum-protocol';
|
||||
export interface GanacheOpts {
|
||||
verbose?: boolean;
|
||||
logger?: {
|
||||
log(msg: string): void;
|
||||
};
|
||||
port?: number;
|
||||
network_id?: number;
|
||||
networkId?: number;
|
||||
mnemonic?: string;
|
||||
gasLimit?: number;
|
||||
vmErrorsOnRPCResponse?: boolean;
|
||||
db_path?: string;
|
||||
}
|
||||
export function provider(opts: GanacheOpts): Provider;
|
||||
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"ganache-core-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user