Add libp2p-{tcp,webrtc-{direct,star},websockets}

This commit is contained in:
Jaco Greeff 2018-06-21 14:49:53 +02:00
parent d9493edda4
commit 3fa977f507
17 changed files with 116 additions and 0 deletions

View File

@ -13,6 +13,10 @@ This following libraries are currently included. Where possible add the relevant
- [interface-connection](https://github.com/libp2p/interface-connection)
- [interface-transport](https://github.com/libp2p/interface-transport)
- [keccak](https://github.com/cryptocoinjs/keccak)
- [libp2p-tcp](https://github.com/libp2p/js-libp2p-tcp)
- [libp2p-webrtc-direct](https://github.com/libp2p/js-libp2p-webrtc-direct)
- [libp2p-webrtc-star](https://github.com/libp2p/js-libp2p-webrtc-star)
- [libp2p-websockets](https://github.com/libp2p/js-libp2p-websockets)
- [multiaddr](https://github.com/multiformats/js-multiaddr)
- [peer-book](https://github.com/libp2p/js-peer-book)
- [peer-id](https://github.com/libp2p/js-peer-id)

11
libp2p-tcp/index.d.ts vendored Normal file
View File

@ -0,0 +1,11 @@
// Type definitions for libp2p-websockets 0.12.0
// Project: https://github.com/libp2p/js-libp2p-websockets
// Definitions by: Jaco Greeff <https://github.com/jacogr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import Transport from 'interface-transport';
declare class LibP2pWebsockets implements Transport {
}
export default LibP2pWebsockets;

View File

16
libp2p-tcp/tsconfig.json Normal file
View 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", "bn.js-tests.ts"]
}

1
libp2p-tcp/tslint.json Normal file
View File

@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }

11
libp2p-webrtc-direct/index.d.ts vendored Normal file
View File

@ -0,0 +1,11 @@
// Type definitions for libp2p-webrtc-direct 0.3.0
// Project: https://github.com/libp2p/js-libp2p-webrtc-direct
// Definitions by: Jaco Greeff <https://github.com/jacogr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import Transport from 'interface-transport';
declare class LibP2pWebRtcDirect implements Transport {
}
export default LibP2pWebRtcDirect;

View 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", "bn.js-tests.ts"]
}

View File

@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }

11
libp2p-webrtc-star/index.d.ts vendored Normal file
View File

@ -0,0 +1,11 @@
// Type definitions for libp2p-webrtc-star 0.15.3
// Project: https://github.com/libp2p/js-libp2p-webrtc-star
// Definitions by: Jaco Greeff <https://github.com/jacogr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import Transport from 'interface-transport';
declare class LibP2pWebRtcStar implements Transport {
}
export default LibP2pWebRtcStar;

View 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", "bn.js-tests.ts"]
}

View File

@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }

11
libp2p-websockets/index.d.ts vendored Normal file
View File

@ -0,0 +1,11 @@
// Type definitions for libp2p-tcp 0.12.0
// Project: https://github.com/libp2p/js-libp2p-tcp
// Definitions by: Jaco Greeff <https://github.com/jacogr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import Transport from 'interface-transport';
declare class LibP2pTcp implements Transport {
}
export default LibP2pTcp;

View File

View 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", "bn.js-tests.ts"]
}

View File

@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }