diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/subproviders/src/globals.d.ts | 10 | ||||
-rw-r--r-- | packages/typescript-typings/types/detect-node/index.d.ts | 3 | ||||
-rw-r--r-- | packages/typescript-typings/types/json-rpc-error/index.d.ts | 8 | ||||
-rw-r--r-- | packages/utils/src/globals.d.ts | 4 |
4 files changed, 11 insertions, 14 deletions
diff --git a/packages/subproviders/src/globals.d.ts b/packages/subproviders/src/globals.d.ts index 837ed287d..94e63a32d 100644 --- a/packages/subproviders/src/globals.d.ts +++ b/packages/subproviders/src/globals.d.ts @@ -4,13 +4,3 @@ declare module '*.json' { export default json; /* tslint:enable */ } - -// TODO: Move this to `typescript-typings` once it is more fleshed out -declare module 'json-rpc-error' { - export class InternalError extends Error { - constructor(err: Error | string); - } - export class MethodNotFound extends Error { - constructor(); - } -} diff --git a/packages/typescript-typings/types/detect-node/index.d.ts b/packages/typescript-typings/types/detect-node/index.d.ts new file mode 100644 index 000000000..4c58b8450 --- /dev/null +++ b/packages/typescript-typings/types/detect-node/index.d.ts @@ -0,0 +1,3 @@ +declare module 'detect-node' { + export const isNode: boolean; +} diff --git a/packages/typescript-typings/types/json-rpc-error/index.d.ts b/packages/typescript-typings/types/json-rpc-error/index.d.ts new file mode 100644 index 000000000..dfaf92167 --- /dev/null +++ b/packages/typescript-typings/types/json-rpc-error/index.d.ts @@ -0,0 +1,8 @@ +declare module 'json-rpc-error' { + export class InternalError extends Error { + constructor(err: Error | string); + } + export class MethodNotFound extends Error { + constructor(); + } +} diff --git a/packages/utils/src/globals.d.ts b/packages/utils/src/globals.d.ts index 98a4b56fc..94e63a32d 100644 --- a/packages/utils/src/globals.d.ts +++ b/packages/utils/src/globals.d.ts @@ -4,7 +4,3 @@ declare module '*.json' { export default json; /* tslint:enable */ } - -declare module 'detect-node' { - export const isNode: boolean; -} |