aboutsummaryrefslogtreecommitdiff
path: root/test/model.ts
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-12-02 05:16:29 +0300
committereug-vs <eug-vs@keemail.me>2020-12-02 05:16:29 +0300
commited24179795e821aa71fb4198bf072d19415741ee (patch)
treecd77f4a0b5a576ab9f35c9d9beff2d44674e5c91 /test/model.ts
parent10433d9d37452ed453272e12acc6012c1c15229d (diff)
downloadmongo-cronjob-ed24179795e821aa71fb4198bf072d19415741ee.tar.gz
test: Scheduler
Diffstat (limited to 'test/model.ts')
-rw-r--r--test/model.ts4
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
});