mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-04-25 14:32:18 +00:00
add some babel config
This commit is contained in:
parent
6f74c18261
commit
66b9e76352
3
.babelrc
3
.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"
|
||||
]
|
||||
}
|
||||
|
15
src/@types/it-pb-rpc/index.d.ts
vendored
15
src/@types/it-pb-rpc/index.d.ts
vendored
@ -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;
|
||||
}
|
@ -16,6 +16,7 @@
|
||||
"**/src/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
"node_modules",
|
||||
"./src/@types"
|
||||
]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user