mongodb-stitch
Version:
[](https://gitter.im/mongodb/stitch?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
12 lines (11 loc) • 415 B
TypeScript
import Event from "./Event";
import { Decoder } from "../common/Codec";
import StitchServiceError from "../../StitchServiceError";
export default class StitchEvent<T> {
static readonly ERROR_EVENT_NAME: string;
readonly eventName: string;
readonly data: T;
readonly error: StitchServiceError;
private constructor();
static fromEvent<T>(event: Event, decoder?: Decoder<T>): StitchEvent<T>;
}