# @types/lineclip

> TypeScript definitions for lineclip

Latest version **2.0.0** (published 2026-03-09) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 65/100 (B)** — status: stable.

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2026-03-09 |
| First published | 2023-11-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51393 |
| Maintainers | types |

## Links

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

## Recent versions

- 2.0.0 (latest) — 2026-03-09
- 1.1.1 (ts4.5) — 2023-11-07
- 1.1.0 — 2023-11-03

## README

# Installation
> `npm install --save @types/lineclip`

# Summary
This package contains type definitions for lineclip (https://github.com/mapbox/lineclip#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lineclip.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lineclip/index.d.ts)
````ts
export type Point = [number, number];
export type BoundingBox = [number, number, number, number];
export type LineClipResult = Point[][];
export type PolygonClipResult = Point[];

export function clipPolyline(points: Point[], bbox: BoundingBox, result?: LineClipResult): LineClipResult;
export function clipPolygon(points: Point[], bbox: BoundingBox): PolygonClipResult;

````

### Additional Details
 * Last updated: Mon, 09 Mar 2026 10:45:51 GMT
 * Dependencies: none

# Credits
These definitions were written by [Sikriti Dakua](https://github.com/devloop01), and [Marc Emmanuel](https://github.com/SheepFromHeaven).

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