From 701ea5c46bb1d25ffc2e6962042ba3e0c0277454 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Fri, 13 Jul 2018 13:05:21 +0200 Subject: Add typedoc for json-rpc-error package --- packages/subproviders/src/globals.d.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/subproviders/src/globals.d.ts b/packages/subproviders/src/globals.d.ts index 6af4c7980..837ed287d 100644 --- a/packages/subproviders/src/globals.d.ts +++ b/packages/subproviders/src/globals.d.ts @@ -5,4 +5,12 @@ declare module '*.json' { /* tslint:enable */ } -declare module 'json-rpc-error'; +// 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(); + } +} -- cgit