@types/knockout.projections
TypeScript icon, indicating that this package has built-in type declarations

1.0.34 • Public • Published

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

  • Last updated: Tue, 30 Jan 2024 21:35:45 GMT
  • Dependencies: @types/knockout

Credits

These definitions were written by John Reilly.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/knockout.projections

Weekly Downloads

42

Version

1.0.34

License

MIT

Unpacked Size

4.3 kB

Total Files

5

Last publish

Collaborators

  • types