# @types/js-data-angular

> TypeScript definitions for js-data-angular

Latest version **2.1.35** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/js-data-angular
pnpm add @types/js-data-angular
yarn add @types/js-data-angular
bun add @types/js-data-angular
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.1.35 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51440 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/js-data-angular
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/js-data-angular
- npm.io page: https://npm.io/package/@types/js-data-angular

## Dependencies (2)

- [@types/angular](https://npm.io/package/@types/angular.md) *
- [@types/js-data](https://npm.io/package/@types/js-data.md) ^2.8.31

## Recent versions

- 2.1.35 (latest) — 2023-11-07
- 2.1.32 (ts2.3) — 2017-10-20
- 2.1.30 (ts2.0) — 2016-09-19
- 2.1.34 — 2023-10-18
- 2.1.33 — 2023-09-15
- 2.1.31 — 2017-06-15
- 2.1.29 — 2016-07-14
- 2.1.28-alpha — 2016-07-11
- 2.1.27-alpha — 2016-07-08
- 2.1.25-alpha — 2016-07-04
- 2.1.24-alpha — 2016-07-02
- 2.1.23-alpha — 2016-07-01
- 2.1.22-alpha — 2016-07-01
- 2.1.21-alpha — 2016-05-25
- 2.1.20-alpha — 2016-05-20
- … 2 more at https://npm.io/package/@types/js-data-angular/versions

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/js-data-angular/index.d.ts)
````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
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: [@types/angular](https://npmjs.com/package/@types/angular), [@types/js-data](https://npmjs.com/package/@types/js-data)

# Credits
These definitions were written by [Stefan Steinhart](https://github.com/reppners).

---
_Source: https://npm.io/package/@types/js-data-angular · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
