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" ] }