@libp2p/interface
Version:
The interface implemented by a libp2p node
21 lines • 625 B
JavaScript
/**
* Any object that implements this Symbol as a property should return a
* Partial<ContentRouting> instance as the property value, similar to how
* `Symbol.Iterable` can be used to return an `Iterable` from an `Iterator`.
*
* @example
*
* ```TypeScript
* import { contentRoutingSymbol, ContentRouting } from '@libp2p/content-routing'
*
* class MyContentRouter implements ContentRouting {
* get [contentRoutingSymbol] () {
* return this
* }
*
* // ...other methods
* }
* ```
*/
export const contentRoutingSymbol = Symbol.for('@libp2p/content-routing');
//# sourceMappingURL=content-routing.js.map