knockout
Advanced tools
Comparing version 3.5.0-rc to 3.5.0-rc2
@@ -139,3 +139,5 @@ // Type definitions for Knockout v3.5.0 | ||
export interface ComputedFunctions<T = any> extends Subscribable<T> { | ||
equalityComparer(a: T, b: T): boolean; | ||
// It's possible for a to be undefined, since the equalityComparer is run on the initial | ||
// computation with undefined as the first argument. This is user-relevant for deferred computeds. | ||
equalityComparer(a: T | undefined, b: T): boolean; | ||
peek(): T; | ||
@@ -188,3 +190,3 @@ dispose(): void; | ||
isInitial(): boolean; | ||
registerDependency(subscribable: Subscribable): void; | ||
registerDependency(subscribable: Subscribable): void; | ||
} | ||
@@ -200,5 +202,8 @@ | ||
export type RateLimitMethod = (callback: () => void, timeout: number, options: any) => (() => void); | ||
export interface RateLimitOptions { | ||
timeout: number; | ||
method?: "notifyAtFixedRate" | "notifyWhenChangesStop"; | ||
method?: "notifyAtFixedRate" | "notifyWhenChangesStop" | RateLimitMethod; | ||
[option: string]: any; | ||
} | ||
@@ -249,3 +254,3 @@ | ||
interface AllBindings { | ||
export interface AllBindings { | ||
(): any; | ||
@@ -292,5 +297,14 @@ | ||
createChildContext<X>(accessor: () => T | Observable<T>, dataItemAlias?: string, extendCallback?: BindingContextExtendCallback<X>): BindingContext<X>; | ||
createChildContext<X>(dataItem: T | Observable<T>, options: BindingChildContextOptions<X>): BindingContext<X>; | ||
createChildContext<X>(accessor: () => T | Observable<T>, options: BindingChildContextOptions<X>): BindingContext<X>; | ||
} | ||
export function applyBindings<T = any>(bindingContext: T | BindingContext<T>, rootNode?: Node | null, extendCallback?: BindingContextExtendCallback<T>): void; | ||
export interface BindingChildContextOptions<T = any> { | ||
as?: string; | ||
extend?: BindingContextExtendCallback<T>; | ||
noChildContext?: boolean; | ||
} | ||
export function applyBindings<T = any>(bindingContext: T | BindingContext<T>): void; | ||
export function applyBindings<T = any>(bindingContext: T | BindingContext<T>, rootNode: Node | null, extendCallback?: BindingContextExtendCallback<T>): void; | ||
export function applyBindingsToDescendants<T = any>(bindingContext: T | BindingContext<T>, rootNode?: Node): void; | ||
@@ -297,0 +311,0 @@ export function applyBindingsToNode<T = any>(node: Node, bindings: object | (() => object), viewModel: T | BindingContext<T>): void; |
@@ -5,3 +5,3 @@ { | ||
"homepage": "http://knockoutjs.com/", | ||
"version": "3.5.0-rc", | ||
"version": "3.5.0-rc2", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "author": "The Knockout.js team", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
421265
6700