Skip to content

Commit

Permalink
Step 13.15: Add declaration of counts package
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela authored and dotansimha committed Nov 27, 2016
1 parent fbdaf9f commit c2d3bd2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion typings.d.ts
Expand Up @@ -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 c2d3bd2

Please sign in to comment.