@evergis/common 1.0.2 → 1.0.4-alpha.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.
@@ -1,9 +1,9 @@
1
- import { ClientStyleValidatorOptions, SpecPropValueOptions } from './types';
1
+ import { ClientStyleValidatorResponse, SpecPropValueOptions } from './types';
2
2
  import { ClientStyle } from '../../types';
3
3
  export declare class ClientStyleValidator {
4
- private options?;
5
- constructor(options?: ClientStyleValidatorOptions);
6
- validate(clientStyle?: ClientStyle): boolean;
4
+ private errors;
5
+ constructor();
6
+ validate(clientStyle?: ClientStyle): ClientStyleValidatorResponse;
7
7
  getSpecPropValueOptions(key: string): SpecPropValueOptions;
8
8
  isHeatmapColorValid(value: unknown): boolean;
9
9
  isZoomInterpolate(value: unknown): boolean;
@@ -1,5 +1,10 @@
1
- export interface ClientStyleValidatorOptions {
2
- verbose?: boolean;
1
+ export interface ClientStyleValidatorError {
2
+ path: string;
3
+ message: string;
4
+ }
5
+ export interface ClientStyleValidatorResponse {
6
+ valid?: boolean;
7
+ errors?: ClientStyleValidatorError[];
3
8
  }
4
9
  export interface SpecPropValueOptions {
5
10
  dataExpressionSupport?: boolean;
@@ -7,4 +12,5 @@ export interface SpecPropValueOptions {
7
12
  transitionable?: boolean;
8
13
  valueTypeAllowed?: "number" | "string" | "boolean";
9
14
  arrayValue?: boolean;
15
+ arrayOnly?: boolean;
10
16
  }