mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #2026 from ttrevorr/update-backbone.d.ts
Update backbone.d.ts
This commit is contained in:
Vendored
+6
-3
@@ -171,7 +171,8 @@ declare module Backbone {
|
||||
remove(models: Model[], options?: Silenceable): Model[];
|
||||
reset(models?: Model[], options?: Silenceable): Model[];
|
||||
reset(models?: any[], options?: Silenceable): Model[];
|
||||
shift(options?: Silenceable): Model;
|
||||
set(models?: any[], options?: Silenceable): Model[];
|
||||
shift(options?: Silenceable): Model;
|
||||
sort(options?: Silenceable): Collection;
|
||||
unshift(model: Model, options?: AddOptions): Model;
|
||||
where(properies: any): Model[];
|
||||
@@ -278,7 +279,8 @@ declare module Backbone {
|
||||
loadUrl(fragmentOverride: string): boolean;
|
||||
navigate(fragment: string, options?: any): boolean;
|
||||
started: boolean;
|
||||
|
||||
options: any;
|
||||
|
||||
_updateHash(location: Location, fragment: string, replace: boolean): void;
|
||||
}
|
||||
|
||||
@@ -330,7 +332,8 @@ declare module Backbone {
|
||||
|
||||
// SYNC
|
||||
function sync(method: string, model: Model, options?: JQueryAjaxSettings): any;
|
||||
var emulateHTTP: boolean;
|
||||
function ajax(options?: JQueryAjaxSettings): JQueryXHR;
|
||||
var emulateHTTP: boolean;
|
||||
var emulateJSONBackbone: boolean;
|
||||
|
||||
// Utility
|
||||
|
||||
Reference in New Issue
Block a user