Permalink
Browse files

Add setTotalCount and getTotalCount methods to Collection type defini…

…tion.
  • Loading branch information...
omegascorp committed Sep 30, 2017
1 parent f87a437 commit 149606b8c48e95f1c624a8800038c9d2789c4608
Showing with 11 additions and 1 deletion.
  1. +1 −1 package.json
  2. +10 −0 typescript/owl.Collection.d.ts
View
@@ -1,6 +1,6 @@
{
"name": "owljs",
"version": "0.8.33",
"version": "0.8.34",
"description": "Backbone-like frontend library",
"main": "index.js",
"typings": "typescript/owl.d.ts",
@@ -56,4 +56,14 @@ export class Collection<I, M> extends EventEmitter {
* In case when index is not defined updates whole collection
*/
update(index?: number): void;
/**
* Sets total count of elements
*/
setTotalCount(count: number): void;
/**
* Gets total count of elements
*/
getTotalCount(): number;
}

0 comments on commit 149606b

Please sign in to comment.