Skip to content

Commit

Permalink
Updated README.md to clarify GeoJSON types need to be installed separ…
Browse files Browse the repository at this point in the history
…ately

Resolves #2769
  • Loading branch information
smallsaucepan authored Dec 14, 2024
1 parent e7a28da commit 304b76b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ You can also include it directly from a CDN:

### TypeScript

TypeScript definitions are packaged with each module. No DefinitelyTyped packages required.
Turf modules ship with type definitions packaged in each module. No DefinitelyTyped packages required.

The types defined in the GeoJSON specification are maintained separately (Geometry, Polygon, etc). To refer to these in your own code, install `@types/geojson` and import from there:

```typescript
import { type Polygon } from "@types/geojson";
```

### Other languages

Expand Down

0 comments on commit 304b76b

Please sign in to comment.