@progress/kendo-charts 1.21.0 → 1.22.0-dev.202112221528

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,5 +1,6 @@
1
1
  import { Group } from '@progress/kendo-drawing';
2
2
  import { Border, Padding, RenderMode } from './field-types';
3
+ import { ValidationResult } from './validation';
3
4
 
4
5
  /**
5
6
  * The QR Code encoding modes.
@@ -128,3 +129,5 @@ export class QRCode {
128
129
  public setOptions(options: QRCodeOptions): void;
129
130
  public exportVisual(): Group;
130
131
  }
132
+
133
+ export function qrcodeValidator(encoding: QRCodeEncoding): (value: number | string) => ValidationResult;
@@ -0,0 +1,9 @@
1
+ export interface ValidationSuccess {
2
+ valid: true;
3
+ }
4
+ export interface ValidationError {
5
+ valid: false;
6
+ error: Error;
7
+ }
8
+
9
+ export type ValidationResult = ValidationError | ValidationSuccess;