mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[backbone] Update the options for Collection.fetch (#27123)
This commit is contained in:
parent
928337ff78
commit
fb6990cd4d
@ -398,7 +398,10 @@ namespace v1Changes {
|
||||
namespace Collection {
|
||||
function test_fetch() {
|
||||
var collection = new EmployeeCollection;
|
||||
collection.fetch({ reset: true });
|
||||
collection.fetch({
|
||||
reset: true,
|
||||
remove: false
|
||||
});
|
||||
}
|
||||
|
||||
function test_create() {
|
||||
|
||||
6
types/backbone/index.d.ts
vendored
6
types/backbone/index.d.ts
vendored
@ -1,6 +1,8 @@
|
||||
// Type definitions for Backbone 1.3.3
|
||||
// Project: http://backbonejs.org/
|
||||
// Definitions by: Boris Yankov <https://github.com/borisyankov>, Natan Vivo <https://github.com/nvivo>
|
||||
// Definitions by: Boris Yankov <https://github.com/borisyankov>
|
||||
// Natan Vivo <https://github.com/nvivo>
|
||||
// kenjiru <https://github.com/kenjiru>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@ -76,7 +78,7 @@ declare namespace Backbone {
|
||||
interface ModelDestroyOptions extends Waitable, PersistenceOptions {
|
||||
}
|
||||
|
||||
interface CollectionFetchOptions extends PersistenceOptions, Parseable {
|
||||
interface CollectionFetchOptions extends PersistenceOptions, Parseable, CollectionSetOptions {
|
||||
reset?: boolean;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user