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
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/angular, @types/js-data
Credits
These definitions were written by Stefan Steinhart.