add some babel config

This commit is contained in:
Marin Petrunić 2020-02-13 22:51:01 +01:00
parent 6f74c18261
commit 66b9e76352
No known key found for this signature in database
GPG Key ID: 834D07135E110DA5
3 changed files with 4 additions and 17 deletions

View File

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

View File

@ -1,15 +0,0 @@
declare module "it-pb-rpc" {
import { Buffer } from "buffer";
import { Duplex } from "it-pair";
type WrappedDuplex = {
read(bytes?: number): Promise<Buffer>;
readLP(): Promise<Buffer>;
write(input: Buffer): void;
writeLP(input: Buffer): void;
unwrap(): Duplex;
}
function Wrap (duplex: any): WrappedDuplex;
export = Wrap;
}

View File

@ -16,6 +16,7 @@
"**/src/**/*.ts"
],
"exclude": [
"node_modules"
"node_modules",
"./src/@types"
]
}