aboutsummaryrefslogtreecommitdiffstats
path: root/packages/typescript-typings
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-13 21:25:37 +0800
committerFabio Berger <me@fabioberger.com>2018-07-13 21:25:37 +0800
commit350989bbec59b731a11c69237bec8625f2331ce2 (patch)
treecab99c99dfe444b3ef31ac7d3d7f8dabb6c4e431 /packages/typescript-typings
parentf5293e6c38b7e4e5352379e2fbd4d03c02b455b2 (diff)
downloaddexon-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.ts3
-rw-r--r--packages/typescript-typings/types/json-rpc-error/index.d.ts8
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();
+ }
+}