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/typescript-typings | |
parent | f5293e6c38b7e4e5352379e2fbd4d03c02b455b2 (diff) | |
download | dexon-0x-contracts-350989bbec59b731a11c69237bec8625f2331ce2.tar.gz dexon-0x-contracts-350989bbec59b731a11c69237bec8625f2331ce2.tar.zst dexon-0x-contracts-350989bbec59b731a11c69237bec8625f2331ce2.zip |
Move type defs to typescript-typingsd
Diffstat (limited to 'packages/typescript-typings')
-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 |
2 files changed, 11 insertions, 0 deletions
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(); + } +} |