Skip to content

Commit

Permalink
Export all types for better typescript support.
Browse files Browse the repository at this point in the history
  • Loading branch information
We-Gold committed Jun 22, 2023
1 parent abfb7e6 commit 244ce8d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ const geoJSON = parsedGPX.toGeoJSON()

If working in an environment where a custom DOM Parser is required, you can include it like so:

_Note, this is significantly slower than using the browser parser._

```js
import { parseGPXWithCustomParser } from "@we-gold/gpxjs"
import { DOMParser } from "xmldom-qsa"
Expand Down
1 change: 1 addition & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { ParsedGPX } from "./parsed_gpx"
export { parseGPX, parseGPXWithCustomParser } from "./parse"
export * from "./types"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@we-gold/gpxjs",
"author": "Weaver Goldman <[email protected]>",
"description": "GPX.js is a modern library for parsing GPX files and converting them to GeoJSON.",
"version": "1.0.4",
"version": "1.0.5",
"type": "module",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit 244ce8d

Please sign in to comment.