UNPKG

mongodb-stitch

Version:

[![Join the chat at https://gitter.im/mongodb/stitch](https://badges.gitter.im/mongodb/stitch.svg)](https://gitter.im/mongodb/stitch?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

12 lines (11 loc) 415 B
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>; }