@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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/js-data-angular

Weekly Downloads

41

Version

2.1.35

License

MIT

Unpacked Size

5.21 kB

Total Files

5

Last publish

Collaborators

  • types