diff options
author | eug-vs <eug-vs@keemail.me> | 2020-12-02 05:16:29 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-12-02 05:16:29 +0300 |
commit | ed24179795e821aa71fb4198bf072d19415741ee (patch) | |
tree | cd77f4a0b5a576ab9f35c9d9beff2d44674e5c91 /test/model.ts | |
parent | 10433d9d37452ed453272e12acc6012c1c15229d (diff) | |
download | mongo-cronjob-ed24179795e821aa71fb4198bf072d19415741ee.tar.gz |
test: Scheduler
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 }); |