diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-13 21:25:37 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-13 21:25:37 +0800 |
commit | 350989bbec59b731a11c69237bec8625f2331ce2 (patch) | |
tree | cab99c99dfe444b3ef31ac7d3d7f8dabb6c4e431 /packages | |
parent | f5293e6c38b7e4e5352379e2fbd4d03c02b455b2 (diff) | |
download | dexon-sol-tools-350989bbec59b731a11c69237bec8625f2331ce2.tar dexon-sol-tools-350989bbec59b731a11c69237bec8625f2331ce2.tar.gz dexon-sol-tools-350989bbec59b731a11c69237bec8625f2331ce2.tar.bz2 dexon-sol-tools-350989bbec59b731a11c69237bec8625f2331ce2.tar.lz dexon-sol-tools-350989bbec59b731a11c69237bec8625f2331ce2.tar.xz dexon-sol-tools-350989bbec59b731a11c69237bec8625f2331ce2.tar.zst dexon-sol-tools-350989bbec59b731a11c69237bec8625f2331ce2.zip |
Move type defs to typescript-typingsd
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; -} |