blob: 182859b330731b26f173605fce459426165c1796 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { Schema } from 'mongoose';
import { Client } from '../lib';
import { Event as EventBase } from '../lib/event.model';
import connection from './utils/dbConnection';
interface Context {
message: string;
}
export type Event = EventBase<Context>;
const contextSchema = new Schema({
message: String
});
const client = new Client<Context>(connection, contextSchema);
export default client;
|