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

0.0.36 • Public • Published

Installation

npm install --save @types/angular-httpi

Summary

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

Details

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

index.d.ts

/// <reference types="angular" />

declare namespace Httpi {
    export interface HttpiPayload extends ng.IRequestShortcutConfig {
        method?: string | undefined;
        url?: string | undefined;
        params?: {} | undefined;
        data?: {} | undefined;
        keepTrailingSlash?: boolean | undefined;
    }

    export interface HttpiFactory {
        (config: HttpiPayload): ng.IHttpPromise<{}>;

        resource(url: string): HttpiResource;
    }

    export class HttpiResource {
        constructor(http: ng.IHttpService, url: string);

        delete<T>(config: HttpiPayload): ng.IHttpPromise<T>;

        get<T>(config: HttpiPayload): ng.IHttpPromise<T>;

        head<T>(config: HttpiPayload): ng.IHttpPromise<T>;

        jsonp<T>(config: HttpiPayload): ng.IHttpPromise<T>;

        post<T>(config: HttpiPayload): ng.IHttpPromise<T>;

        put<T>(config: HttpiPayload): ng.IHttpPromise<T>;

        setKeepTrailingSlash(newKeepTrailingSlash: boolean): HttpiResource;
    }
}

Additional Details

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

Credits

These definitions were written by Andrew Camilleri.

/@types/angular-httpi/

    Package Sidebar

    Install

    npm i @types/angular-httpi

    Weekly Downloads

    8

    Version

    0.0.36

    License

    MIT

    Unpacked Size

    4.67 kB

    Total Files

    5

    Last publish

    Collaborators

    • types