diff options
Diffstat (limited to 'test/model.ts')
-rw-r--r-- | test/model.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/model.ts b/test/model.ts index 4d189dc..f8f76a6 100644 --- a/test/model.ts +++ b/test/model.ts @@ -1,10 +1,12 @@ import { Schema } from 'mongoose'; -import model from '../lib/event.model'; +import model, { Event } from '../lib/event.model'; interface Context { message: string; } +export type CustomEvent = Event<Context>; + const contextSchema = new Schema({ message: String }); |