diff --git a/backbone/backbone.d.ts b/backbone/backbone.d.ts index 256554774..d94e9172b 100644 --- a/backbone/backbone.d.ts +++ b/backbone/backbone.d.ts @@ -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