js-waku/packages/interfaces/src/light_push.ts
fryorcraken.eth 53af8994bd
feat: added I prefix to protocols interfaces
This will enable the remove of `Waku` prefix on all protocol
implementations, which is redundant due to the context.
2022-12-12 22:36:09 +11:00

15 lines
325 B
TypeScript

import type { IEncoder, IMessage } from "./message.js";
import type {
PointToPointProtocol,
ProtocolOptions,
SendResult,
} from "./protocols.js";
export interface ILightPush extends PointToPointProtocol {
push: (
encoder: IEncoder,
message: IMessage,
opts?: ProtocolOptions
) => Promise<SendResult>;
}