# @types/nanoajax

> TypeScript definitions for nanoajax

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

## Install

```sh
npm install @types/nanoajax
pnpm add @types/nanoajax
yarn add @types/nanoajax
bun add @types/nanoajax
```

## 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; pre 1.0.

Negative: abandoned.

## Facts

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

## Links

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

## Recent versions

- 0.2.34 (latest) — 2023-11-07
- 0.2.31 (ts3.6) — 2021-07-08
- 0.2.30 (ts2.0) — 2017-08-21
- 0.2.33 — 2023-10-18
- 0.2.32 — 2023-09-23
- 0.2.29 — 2016-09-19
- 0.2.28 — 2016-07-14
- 0.2.27-alpha — 2016-07-08
- 0.2.26-alpha — 2016-07-04
- 0.2.25-alpha — 2016-07-02
- 0.2.24-alpha — 2016-07-01
- 0.2.23-alpha — 2016-07-01
- 0.2.22-alpha — 2016-05-25
- 0.2.21-alpha — 2016-05-20
- 0.2.16-alpha — 2016-05-19
- … 1 more at https://npm.io/package/@types/nanoajax/versions

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nanoajax/index.d.ts)
````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](https://github.com/nathancahill).

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