@types/js-data-angular
TypeScript icon, indicating that this package has built-in type declarations

2.1.35 • Public • Published

Installation

npm install --save @types/js-data-angular

Summary

This package contains type definitions for js-data-angular (https://github.com/js-data/js-data-angular).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/js-data-angular.

index.d.ts

/// <reference types="js-data" />
/// <reference types="angular" />

import * as ng from "angular";
import * as JSData from "js-data";

declare module "js-data" {
    interface DSProvider {
        defaults: DSConfiguration;
    }

    interface DS {
        bindAll<T>(
            resourceName: string,
            params: DSFilterParams,
            scope: ng.IScope,
            expr: string,
            cb?: (err: DSError, items: Array<T & DSInstanceShorthands<T>>) => void,
        ): Function;
        bindOne<T>(
            resourceName: string,
            id: string | number,
            scope: ng.IScope,
            expr: string,
            cb?: (err: DSError, item: T & DSInstanceShorthands<T>) => void,
        ): Function;
    }

    interface DSResourceDefinition<T> {
        bindAll(
            params: DSFilterParams,
            scope: ng.IScope,
            expr: string,
            cb?: (err: DSError, items: Array<T & DSInstanceShorthands<T>>) => void,
        ): Function;
        bindOne(
            id: string | number,
            scope: ng.IScope,
            expr: string,
            cb?: (err: DSError, item: T & DSInstanceShorthands<T>) => void,
        ): Function;
    }
}

Additional Details

Credits

These definitions were written by Stefan Steinhart.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.1.3011ts2.0
2.1.3011ts2.1
2.1.3011ts2.2
2.1.327ts2.3
2.1.327ts2.4
2.1.327ts2.5
2.1.327ts2.6
2.1.327ts2.7
2.1.327ts2.8
2.1.327ts2.9
2.1.327ts3.0
2.1.327ts3.1
2.1.327ts3.2
2.1.327ts3.3
2.1.327ts3.4
2.1.327ts3.5
2.1.327ts3.6
2.1.327ts3.7
2.1.327ts3.8
2.1.327ts3.9
2.1.327ts4.0
2.1.327ts4.1
2.1.327ts4.2
2.1.327ts4.3
2.1.327ts4.4
2.1.352ts5.7
2.1.352ts5.6
2.1.352latest
2.1.352ts4.5
2.1.352ts4.6
2.1.352ts4.7
2.1.352ts4.8
2.1.352ts4.9
2.1.352ts5.0
2.1.352ts5.1
2.1.352ts5.2
2.1.352ts5.3
2.1.352ts5.4
2.1.352ts5.5
2.1.352ts5.8

Version History

VersionDownloads (Last 7 Days)Published
2.1.352
2.1.341
2.1.332
2.1.327
2.1.311
2.1.3011
2.1.291
2.1.28-alpha1
2.1.27-alpha1
2.1.25-alpha1
2.1.24-alpha1
2.1.23-alpha1
2.1.22-alpha1
2.1.21-alpha1
2.1.20-alpha1
2.1.15-alpha1
2.1.14-alpha1

Package Sidebar

Install

npm i @types/js-data-angular

Weekly Downloads

35

Version

2.1.35

License

MIT

Unpacked Size

5.21 kB

Total Files

5

Last publish

Collaborators

  • types