Permalink
Browse files

Step 13.15: Add declaration of counts package

  • Loading branch information...
1 parent 8eb3efd commit 8d92d4a43e5a727e446ae6b0c5c1070755d5c36e @kamilkisiela kamilkisiela committed with DAB0mB Sep 23, 2016
Showing with 12 additions and 1 deletion.
  1. +12 −1 typings.d.ts
View
@@ -25,4 +25,15 @@ declare module '*.css' {
declare module '*.sass' {
const style: string;
export default style;
-}
+}
+
+declare module 'meteor/tmeasday:publish-counts' {
+ import { Mongo } from 'meteor/mongo';
+
+ interface CountsObject {
+ get(publicationName: string): number;
+ publish(context: any, publicationName: string, cursor: Mongo.Cursor, options: any): number;
+ }
+
+ export const Counts: CountsObject;
+}

0 comments on commit 8d92d4a

Please sign in to comment.