mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Update index.d.ts removed fromjs overload that no longer exists in latest knockout.mapping, and added much better type safety for "fromJS". * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * fix for typescript version. * more typescript versioning fixes. * fix for minor bug. * yet another test fix. * yet another test fix.
27 lines
1.0 KiB
TypeScript
27 lines
1.0 KiB
TypeScript
// Type definitions for knockout-projections 1.0.0
|
|
// Project: https://github.com/stevesanderson/knockout-projections
|
|
// Definitions by: John Reilly <https://github.com/johnnyreilly>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
/// <reference types="knockout" />
|
|
|
|
interface KnockoutMappedObservableArray<T> extends KnockoutObservableArray<T>, KnockoutSubscription {
|
|
}
|
|
|
|
interface KnockoutObservableArrayFunctions<T> {
|
|
map<TResult>(mappingOptions: {
|
|
mappingWithDisposeCallback: (value: T) => {
|
|
mappedValue: TResult;
|
|
dispose: () => void;
|
|
};
|
|
}): KnockoutMappedObservableArray<TResult>;
|
|
map<TResult>(mappingOptions: {
|
|
mapping: (value: T) => TResult;
|
|
disposeItem?: (mappedItem: TResult) => void;
|
|
}): KnockoutMappedObservableArray<TResult>;
|
|
map<TResult>(mappingOptions: (value: T) => TResult): KnockoutMappedObservableArray<TResult>;
|
|
|
|
filter(predicate: (value: T) => boolean): KnockoutMappedObservableArray<T>;
|
|
}
|