Skip to content

Commit e8fff31

Browse files
committed
feat(package): export external types
1 parent 02e9dda commit e8fff31

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

geojson/_index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Module geojson implements types and functions for working with GeoJSON.
33
* @module geojson
44
*/
5-
export * as geojson from 'geojson'
6-
75
export { Encodable, Decodable } from './geometry'
86
export { toGeoJSON, fromGeoJSON } from './geometry'
97

geojson/loop.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Loop } from '../s2/Loop'
99
export const marshal = (loop: Loop, ordinal: number): geojson.Position[] => {
1010
const ring = loop.vertices.map(position.marshal)
1111
if (ordinal > 0) ring.reverse() // outer ring remains CCW, inner rings become CW
12-
ring.push(ring.at(0)!) // add matching start/end points
12+
ring.push(ring[0]) // add matching start/end points
1313
return ring
1414
}
1515

typedoc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
"theme": "default",
66
"readme": "README.md",
77
"hideGenerator": true,
8-
"entryPoints": ["index.ts"]
8+
"entryPoints": ["index.ts", "node_modules/@types/geojson/index.d.ts"]
99
}

0 commit comments

Comments
 (0)