Initial commit: libp2p-native-bridge package
- Extracted libp2p component from main app - Created modular package structure with interfaces and implementations - Added dependency injection for NativeModules - Configured for IOR loading from Gitea - Added comprehensive README and documentation
This commit is contained in:
20
interfaces/types.ts
Normal file
20
interfaces/types.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Type definitions for libp2p native bridge
|
||||
*/
|
||||
|
||||
export type {
|
||||
ConnectionStatusEvent,
|
||||
PeerDiscoveredEvent,
|
||||
PeerInfoEvent
|
||||
} from '../utils/types';
|
||||
|
||||
// Re-export common types from ILibp2pComponent for convenience
|
||||
export type {
|
||||
PeerId,
|
||||
Multiaddr,
|
||||
Connection,
|
||||
PeerInfo,
|
||||
ProtocolHandler,
|
||||
Libp2pEvents,
|
||||
Libp2pOptions
|
||||
} from './ILibp2pComponent';
|
||||
Reference in New Issue
Block a user