Skip to content

Commit 5df3c1d

Browse files
authored
chore: Export types from types.ts through top-level package (#210)
1 parent 7a5b1b6 commit 5df3c1d

3 files changed

Lines changed: 17 additions & 19 deletions

File tree

packages/deck.gl-geoarrow/src/index.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,12 @@ export { GeoArrowTextLayer as _GeoArrowTextLayer } from "./layers/text-layer.js"
4747
export type { GeoArrowTripsLayerProps } from "./layers/trips-layer.js";
4848
export { GeoArrowTripsLayer } from "./layers/trips-layer.js";
4949

50-
export type { GeoArrowPickingInfo } from "./types.js";
50+
export type {
51+
Accessor,
52+
AccessorFunction,
53+
ColorAccessor,
54+
FloatAccessor,
55+
GeoArrowPickingInfo,
56+
NormalAccessor,
57+
TimestampAccessor,
58+
} from "./types.js";

packages/deck.gl-geoarrow/src/types.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ import type { BinaryAttribute, Color, PickingInfo } from "@deck.gl/core";
66
import type * as arrow from "apache-arrow";
77
import type { Data } from "apache-arrow";
88

9-
type TypedArray =
10-
| Int8Array
11-
| Uint8Array
12-
| Uint8ClampedArray
9+
export type TypedArray =
10+
| Float32Array
11+
| Float64Array
1312
| Int16Array
14-
| Uint16Array
1513
| Int32Array
14+
| Int8Array
15+
| Uint16Array
1616
| Uint32Array
17-
| Float32Array
18-
| Float64Array;
17+
| Uint8Array
18+
| Uint8ClampedArray;
1919

2020
/**
2121
* An individual layer's data

packages/deck.gl-geoarrow/src/utils/utils.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,9 @@ import type {
99
_InternalAccessorContext,
1010
AccessorContext,
1111
AccessorFunction,
12+
TypedArray,
1213
} from "../types";
1314

14-
export type TypedArray =
15-
| Uint8Array
16-
| Uint8ClampedArray
17-
| Uint16Array
18-
| Uint32Array
19-
| Int8Array
20-
| Int16Array
21-
| Int32Array
22-
| Float32Array
23-
| Float64Array;
24-
2515
export function findGeometryColumnIndex(
2616
schema: arrow.Schema,
2717
extensionName: string,

0 commit comments

Comments
 (0)