Optional parameters for Backbone.

This commit is contained in:
Guus Goossens
2013-02-25 13:43:30 +01:00
parent f6416eb7cb
commit f8cbbfaae7

View File

@@ -11,14 +11,14 @@ declare module Backbone {
export interface AddOptions extends Silenceable {
at: number;
}
export interface CreateOptions extends Silenceable {
wait: bool;
}
export interface HistoryOptions extends Silenceable {
pushState: bool;
root: string;
pushState?: bool;
root?: string;
}
export interface NavigateOptions {
@@ -30,7 +30,7 @@ declare module Backbone {
}
export interface Silenceable {
silent: bool;
silent?: bool;
}
interface on { (eventName: string, callback: (...args: any[]) => void, context?: any): any; }
@@ -68,8 +68,8 @@ declare module Backbone {
constructor (attributes?: any, options?: any);
initialize(attributes?: any);
get(attributeName: string): any;
set(attributeName: string, value: any, options?: Silenceable);
get(attributeName: string): any;
set(attributeName: string, value: any, options?: Silenceable);
set(obj: any, options?: Silenceable);
change();