terra-draw 1.13.0 → 1.14.0

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/dist/common.d.ts CHANGED
@@ -132,6 +132,7 @@ export declare const SELECT_PROPERTIES: {
132
132
  readonly SELECTION_POINT: "selectionPoint";
133
133
  };
134
134
  export declare const COMMON_PROPERTIES: {
135
+ readonly MODE: "mode";
135
136
  readonly CURRENTLY_DRAWING: "currentlyDrawing";
136
137
  readonly EDITED: "edited";
137
138
  readonly CLOSING_POINT: "closingPoint";
@@ -1,6 +1,6 @@
1
1
  import { Feature, Point, Polygon, LineString } from "geojson";
2
2
  import { Validation } from "../common";
3
- type JSON = string | number | boolean | null | JSONArray | JSONObject;
3
+ export type JSON = string | number | boolean | null | JSONArray | JSONObject;
4
4
  export interface JSONObject {
5
5
  [member: string]: JSON;
6
6
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Checks if a value is a valid JSON value.
3
+ * @param value - The value to check
4
+ * @returns true if the value is valid JSON, false otherwise
5
+ */
6
+ export declare function isValidJSONValue(value: unknown): value is JSON;
@@ -0,0 +1 @@
1
+ export {};