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

0.2.34 • Public • Published

Installation

npm install --save @types/nanoajax

Summary

This package contains type definitions for nanoajax (https://github.com/yanatan16/nanoajax).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nanoajax.

index.d.ts

interface RequestParameters {
    url: string;
    headers?: { [key: string]: string } | undefined;
    body?: string | FormData | undefined;
    method?: string | undefined;
    cors?: boolean | undefined;
}

interface Callback {
    (statusCode: number, response: string, request: XMLHttpRequest): any;
}

export declare function ajax(params: RequestParameters, callback: Callback): XMLHttpRequest;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Nathan Cahill.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/nanoajax

Weekly Downloads

245

Version

0.2.34

License

MIT

Unpacked Size

3.34 kB

Total Files

5

Last publish

Collaborators

  • types