mirror of
https://github.com/fluencelabs/libp2p-ts
synced 2025-03-16 18:20:50 +00:00
commit
3655a4ca31
@ -12,5 +12,5 @@
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": ["index.d.ts", "bn.js-tests.ts"]
|
||||
"files": ["index.d.ts", "libp2p-mplex-tests.ts"]
|
||||
}
|
||||
|
3
types/libp2p/index.d.ts
vendored
3
types/libp2p/index.d.ts
vendored
@ -13,6 +13,7 @@
|
||||
/// <reference types="libp2p-spdy"/>
|
||||
/// <reference types="peer-book"/>
|
||||
/// <reference types="peer-info"/>
|
||||
/// <reference types="pull-mplex"/>
|
||||
|
||||
declare namespace LibP2p {
|
||||
export type OptionsConfig = {
|
||||
@ -46,7 +47,7 @@ declare namespace LibP2p {
|
||||
|
||||
export type OptionsModules = {
|
||||
connEncryption: Array<LibP2pSecio>,
|
||||
streamMuxer: Array<LibP2pMplex | LibP2pSpdy>,
|
||||
streamMuxer: Array<LibP2pMplex | LibP2pSpdy | PullMplex>,
|
||||
dht?: typeof LibP2pKadDht,
|
||||
peerDiscovery: Array<LibP2pBootstrap | LibP2pMdns>,
|
||||
transport: LibP2pTransport[]
|
||||
|
13
types/pull-mplex/index.d.ts
vendored
Normal file
13
types/pull-mplex/index.d.ts
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
// Type definitions for pull-mplex 0.1.1
|
||||
// Project: https://github.com/libp2p/pull-mplex
|
||||
// Definitions by: Jaco Greeff <https://github.com/jacogr>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare interface PullMplex {
|
||||
}
|
||||
|
||||
declare module 'pull-mplex' {
|
||||
const mplex: PullMplex;
|
||||
|
||||
export default mplex;
|
||||
}
|
0
types/pull-mplex/pull-mplex-tests.ts
Normal file
0
types/pull-mplex/pull-mplex-tests.ts
Normal file
16
types/pull-mplex/tsconfig.json
Normal file
16
types/pull-mplex/tsconfig.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": ["es6"],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": ["../"],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": ["index.d.ts", "pull-mplex-tests.ts"]
|
||||
}
|
1
types/pull-mplex/tslint.json
Normal file
1
types/pull-mplex/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
Loading…
x
Reference in New Issue
Block a user