Permalink
Browse files

Step 21.5: Add interfaces to Mongo Collections

  • Loading branch information...
1 parent 1497816 commit 19394dfd68f02979bcc1d98c7142135c36450984 @dotansimha dotansimha committed with DAB0mB Sep 27, 2016
Showing with 3 additions and 2 deletions.
  1. +3 −2 both/collections/images.collection.ts
@@ -1,5 +1,6 @@
import { MongoObservable } from 'meteor-rxjs';
import { Meteor } from 'meteor/meteor';
+import { Thumb, Image } from "../models/image.model";
-export const Images = new MongoObservable.Collection('images');
-export const Thumbs = new MongoObservable.Collection('thumbs');
+export const Images = new MongoObservable.Collection<Image>('images');
+export const Thumbs = new MongoObservable.Collection<Thumb>('thumbs');

0 comments on commit 19394df

Please sign in to comment.