PesistenceOptions is actually JQueryAjaxSettings.

backbone.js:Backbone.sync
> // Make the request, allowing the user to override any Ajax options.
> var xhr = options.xhr = Backbone.ajax(_.extend(params, options));
This commit is contained in:
Sascha Thiel
2015-12-07 14:31:10 +01:00
parent 8cd79728ef
commit 9e91f2a6c2

View File

@@ -41,11 +41,7 @@ declare module Backbone {
parse?: any;
}
interface PersistenceOptions {
url?: string;
beforeSend?: (jqxhr: JQueryXHR) => void;
success?: (modelOrCollection?: any, response?: any, options?: any) => void;
error?: (modelOrCollection?: any, jqxhr?: JQueryXHR, options?: any) => void;
interface PersistenceOptions extends JQueryAjaxSettings {
}
interface ModelSetOptions extends Silenceable, Validable {