@kepler.gl/types 3.1.0-alpha.7 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actions.d.ts +1 -0
- package/layers.d.ts +1 -0
- package/package.json +1 -1
- package/types.d.ts +17 -0
package/actions.d.ts
CHANGED
package/layers.d.ts
CHANGED
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -32,6 +32,9 @@ export type ProcessorResult = {
|
|
|
32
32
|
rows: any[][];
|
|
33
33
|
cols?: any[];
|
|
34
34
|
metadata?: any;
|
|
35
|
+
/** Optional schema for arrow tables with metadata preserved. */
|
|
36
|
+
// TODO: Should we use a loaded arrow.Table in cols instead of an array of arrow.Vectors? Why was an array of arrow.Vectors chosen?
|
|
37
|
+
arrowSchema?: any;
|
|
35
38
|
} | null;
|
|
36
39
|
|
|
37
40
|
export type Json = JsonScalar | JsonArray | JsonObject;
|
|
@@ -41,3 +44,17 @@ export type JsonArray = Json[];
|
|
|
41
44
|
export type JsonObject = {
|
|
42
45
|
[key: string]: Json | undefined;
|
|
43
46
|
};
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Types to mock apache-arrow types
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
export interface ApacheVectorInterface {
|
|
53
|
+
length: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface ArrowTableInterface {
|
|
57
|
+
get numRows(): number;
|
|
58
|
+
|
|
59
|
+
getChildAt: (index: number) => Vector;
|
|
60
|
+
}
|