# @types/leaflet-areaselect

> TypeScript definitions for leaflet-areaselect

Latest version **0.1.9** (published 2025-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/leaflet-areaselect
pnpm add @types/leaflet-areaselect
yarn add @types/leaflet-areaselect
bun add @types/leaflet-areaselect
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.1.9 |
| Published | 2025-09-03 |
| First published | 2017-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51371 |
| Maintainers | types |

## Links

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

## Dependencies (1)

- [@types/leaflet](https://npm.io/package/@types/leaflet.md) ^1.9

## Recent versions

- 0.1.9 (latest) — 2025-09-03
- 0.1.8 (ts4.5) — 2023-11-07
- 0.1.6 (ts4.3) — 2023-08-30
- 0.1.5 (ts3.6) — 2021-07-08
- 0.1.4 (ts2.3) — 2019-02-14
- 0.1.2 (ts2.0) — 2017-08-29
- 0.1.7 — 2023-10-18
- 0.1.3 — 2017-11-09
- 0.1.1 — 2017-08-21
- 0.1.0 — 2017-05-05

## README

# Installation
> `npm install --save @types/leaflet-areaselect`

# Summary
This package contains type definitions for leaflet-areaselect (https://github.com/heyman/leaflet-areaselect).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet-areaselect.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet-areaselect/index.d.ts)
````ts
import * as L from "leaflet";

declare module "leaflet" {
    function areaSelect(box: AreaSelectOptions): AreaSelect;

    interface AreaSelectOptions {
        width?: number | undefined;
        height?: number | undefined;
        keepAspectRatio?: boolean | undefined;
    }

    interface Dimension {
        width: number;
        height: number;
    }

    interface AreaSelect {
        addTo(map: Map): Map;
        getBounds(): LatLngBounds;
        remove(): void;
        setDimensions(dim: Dimension): void;
    }
}

````

### Additional Details
 * Last updated: Wed, 03 Sep 2025 08:02:47 GMT
 * Dependencies: [@types/leaflet](https://npmjs.com/package/@types/leaflet)

# Credits
These definitions were written by [André Wallat](https://github.com/awallat).

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