@mappable-world/mappable-types 1.0.16452936 → 1.0.16461411

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.
@@ -5,7 +5,13 @@ import { MMapEntity } from "../MMapEnities";
5
5
  type MMapFeatureDataSourceProps = {
6
6
  /** Data source id */
7
7
  id: string;
8
+ /** Whether to optimize this source for frequent data updates */
9
+ dynamic?: boolean;
8
10
  };
11
+ declare const defaultProps: Readonly<{
12
+ dynamic: true;
13
+ }>;
14
+ type DefaultProps = typeof defaultProps;
9
15
  /**
10
16
  * Map geojson data source. Used to upload objects to the map in geojson format
11
17
  *
@@ -19,7 +25,10 @@ type MMapFeatureDataSourceProps = {
19
25
  * .addChild(layer);
20
26
  * ```
21
27
  */
22
- declare class MMapFeatureDataSource extends MMapEntity<MMapFeatureDataSourceProps> {
28
+ declare class MMapFeatureDataSource extends MMapEntity<MMapFeatureDataSourceProps, DefaultProps> {
29
+ static defaultProps: Readonly<{
30
+ dynamic: true;
31
+ }>;
23
32
  protected _onAttach(): void;
24
33
  protected _onDetach(): void;
25
34
  protected _onUpdate(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mappable-world/mappable-types",
3
- "version": "1.0.16452936",
3
+ "version": "1.0.16461411",
4
4
  "description": "Types for mappable maps library",
5
5
  "main": "",
6
6
  "types": "index.d.ts",