From 66b9e76352453b12c25681cbb661323e33068e98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marin=20Petruni=C4=87?= Date: Thu, 13 Feb 2020 22:51:01 +0100 Subject: [PATCH] add some babel config --- .babelrc | 3 ++- src/@types/it-pb-rpc/index.d.ts | 15 --------------- tsconfig.json | 3 ++- 3 files changed, 4 insertions(+), 17 deletions(-) delete mode 100644 src/@types/it-pb-rpc/index.d.ts diff --git a/.babelrc b/.babelrc index 7cdd358..fc69aa9 100644 --- a/.babelrc +++ b/.babelrc @@ -13,6 +13,7 @@ "plugins": [ "@babel/plugin-proposal-object-rest-spread", "@babel/plugin-proposal-export-default-from", - "@babel/plugin-proposal-async-generator-functions" + "@babel/plugin-proposal-async-generator-functions", + "@babel/plugin-proposal-class-properties" ] } diff --git a/src/@types/it-pb-rpc/index.d.ts b/src/@types/it-pb-rpc/index.d.ts deleted file mode 100644 index 3424cf9..0000000 --- a/src/@types/it-pb-rpc/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -declare module "it-pb-rpc" { - import { Buffer } from "buffer"; - import { Duplex } from "it-pair"; - type WrappedDuplex = { - read(bytes?: number): Promise; - readLP(): Promise; - write(input: Buffer): void; - writeLP(input: Buffer): void; - unwrap(): Duplex; - } - - function Wrap (duplex: any): WrappedDuplex; - - export = Wrap; -} diff --git a/tsconfig.json b/tsconfig.json index 034987e..075738e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,6 +16,7 @@ "**/src/**/*.ts" ], "exclude": [ - "node_modules" + "node_modules", + "./src/@types" ] }