npm.io
1.0.34 • Published 2 years ago

@types/knockout.projections

Licence
MIT
Version
1.0.34
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/knockout.projections

Summary

This package contains type definitions for knockout.projections (https://github.com/stevesanderson/knockout-projections).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/knockout.projections.

index.d.ts

/// <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) | undefined;
    }): KnockoutMappedObservableArray<TResult>;
    map<TResult>(mappingOptions: (value: T) => TResult): KnockoutMappedObservableArray<TResult>;

    filter(predicate: (value: T) => boolean): KnockoutMappedObservableArray<T>;
}

Additional Details

Credits

These definitions were written by John Reilly.