# 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).
