diff --git a/README.md b/README.md index 5f49891..106c22c 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/libp2p-tcp/index.d.ts b/libp2p-tcp/index.d.ts new file mode 100644 index 0000000..cca719f --- /dev/null +++ b/libp2p-tcp/index.d.ts @@ -0,0 +1,11 @@ +// Type definitions for libp2p-websockets 0.12.0 +// Project: https://github.com/libp2p/js-libp2p-websockets +// Definitions by: Jaco Greeff +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import Transport from 'interface-transport'; + +declare class LibP2pWebsockets implements Transport { +} + +export default LibP2pWebsockets; diff --git a/libp2p-tcp/libp2p-websockets-tests.ts b/libp2p-tcp/libp2p-websockets-tests.ts new file mode 100644 index 0000000..e69de29 diff --git a/libp2p-tcp/tsconfig.json b/libp2p-tcp/tsconfig.json new file mode 100644 index 0000000..932e246 --- /dev/null +++ b/libp2p-tcp/tsconfig.json @@ -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"] +} diff --git a/libp2p-tcp/tslint.json b/libp2p-tcp/tslint.json new file mode 100644 index 0000000..3db14f8 --- /dev/null +++ b/libp2p-tcp/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/libp2p-webrtc-direct/index.d.ts b/libp2p-webrtc-direct/index.d.ts new file mode 100644 index 0000000..5801a54 --- /dev/null +++ b/libp2p-webrtc-direct/index.d.ts @@ -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 +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import Transport from 'interface-transport'; + +declare class LibP2pWebRtcDirect implements Transport { +} + +export default LibP2pWebRtcDirect; diff --git a/libp2p-webrtc-direct/libp2p-webrtc-direct-tests.ts b/libp2p-webrtc-direct/libp2p-webrtc-direct-tests.ts new file mode 100644 index 0000000..e69de29 diff --git a/libp2p-webrtc-direct/tsconfig.json b/libp2p-webrtc-direct/tsconfig.json new file mode 100644 index 0000000..932e246 --- /dev/null +++ b/libp2p-webrtc-direct/tsconfig.json @@ -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"] +} diff --git a/libp2p-webrtc-direct/tslint.json b/libp2p-webrtc-direct/tslint.json new file mode 100644 index 0000000..3db14f8 --- /dev/null +++ b/libp2p-webrtc-direct/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/libp2p-webrtc-star/index.d.ts b/libp2p-webrtc-star/index.d.ts new file mode 100644 index 0000000..264eaef --- /dev/null +++ b/libp2p-webrtc-star/index.d.ts @@ -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 +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import Transport from 'interface-transport'; + +declare class LibP2pWebRtcStar implements Transport { +} + +export default LibP2pWebRtcStar; diff --git a/libp2p-webrtc-star/libp2p-webrtc-star-tests.ts b/libp2p-webrtc-star/libp2p-webrtc-star-tests.ts new file mode 100644 index 0000000..e69de29 diff --git a/libp2p-webrtc-star/tsconfig.json b/libp2p-webrtc-star/tsconfig.json new file mode 100644 index 0000000..932e246 --- /dev/null +++ b/libp2p-webrtc-star/tsconfig.json @@ -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"] +} diff --git a/libp2p-webrtc-star/tslint.json b/libp2p-webrtc-star/tslint.json new file mode 100644 index 0000000..3db14f8 --- /dev/null +++ b/libp2p-webrtc-star/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/libp2p-websockets/index.d.ts b/libp2p-websockets/index.d.ts new file mode 100644 index 0000000..0c78fb4 --- /dev/null +++ b/libp2p-websockets/index.d.ts @@ -0,0 +1,11 @@ +// Type definitions for libp2p-tcp 0.12.0 +// Project: https://github.com/libp2p/js-libp2p-tcp +// Definitions by: Jaco Greeff +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import Transport from 'interface-transport'; + +declare class LibP2pTcp implements Transport { +} + +export default LibP2pTcp; diff --git a/libp2p-websockets/libp2p-tcp-tests.ts b/libp2p-websockets/libp2p-tcp-tests.ts new file mode 100644 index 0000000..e69de29 diff --git a/libp2p-websockets/tsconfig.json b/libp2p-websockets/tsconfig.json new file mode 100644 index 0000000..932e246 --- /dev/null +++ b/libp2p-websockets/tsconfig.json @@ -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"] +} diff --git a/libp2p-websockets/tslint.json b/libp2p-websockets/tslint.json new file mode 100644 index 0000000..3db14f8 --- /dev/null +++ b/libp2p-websockets/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }