Add TypeScript declaration file for IOR type generation
This commit is contained in:
40
index.d.ts
vendored
Normal file
40
index.d.ts
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
/**
|
||||
* Type declarations for @metatrom/libp2p-native-bridge
|
||||
*/
|
||||
|
||||
// Main component exports
|
||||
export { Libp2pComponent, SimplePeerId, SimpleMultiaddr } from './implementations/Libp2pComponent';
|
||||
|
||||
// Settings exports
|
||||
export {
|
||||
SettingsService,
|
||||
getSettingsService,
|
||||
DEFAULT_SETTINGS,
|
||||
type AppSettings,
|
||||
type INativeModules
|
||||
} from './implementations/SettingsService';
|
||||
|
||||
// UI Components
|
||||
export { SettingsUI } from './implementations/SettingsUI';
|
||||
|
||||
// Interface exports
|
||||
export type {
|
||||
Connection,
|
||||
ILibp2pComponent,
|
||||
Libp2pEvents,
|
||||
Libp2pOptions,
|
||||
Multiaddr,
|
||||
PeerId,
|
||||
PeerInfo,
|
||||
ProtocolHandler,
|
||||
} from './interfaces/ILibp2pComponent';
|
||||
|
||||
// Type exports
|
||||
export type {
|
||||
ConnectionStatusEvent,
|
||||
PeerDiscoveredEvent,
|
||||
PeerInfoEvent
|
||||
} from './utils/types';
|
||||
|
||||
// Constant exports
|
||||
export { LIBP2P_CONFIG } from './utils/constants';
|
||||
Reference in New Issue
Block a user