Skip to content

Commit

Permalink
validator.d.ts, regenerate all (3), ref prev 248b1cf
Browse files Browse the repository at this point in the history
  • Loading branch information
mpreyskurantov committed Jan 13, 2025
1 parent 248b1cf commit 10b4fcf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/devextreme-angular/src/ui/validator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {


import * as CommonTypes from 'devextreme/common';
import { DisposingEvent, InitializedEvent, OptionChangedEvent } from 'devextreme/ui/validator';
import { DisposingEvent, InitializedEvent, OptionChangedEvent, ValidatedEvent } from 'devextreme/ui/validator';

import DxValidator from 'devextreme/ui/validator';

Expand Down Expand Up @@ -207,7 +207,7 @@ export class DxValidatorComponent extends DxComponentExtension implements OnDest
*/
@Output() onValidated: EventEmitter<Object>;
@Output() onValidated: EventEmitter<ValidatedEvent>;

/**
Expand Down
3 changes: 2 additions & 1 deletion packages/devextreme-react/src/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ExtensionComponent as BaseComponent } from "./core/extension-component"
import { IHtmlOptions, ComponentRef, NestedComponentMeta } from "./core/component";
import NestedOption from "./core/nested-option";

import type { DisposingEvent, InitializedEvent } from "devextreme/ui/validator";
import type { DisposingEvent, InitializedEvent, ValidatedEvent } from "devextreme/ui/validator";
import type { ValidationRuleType, ComparisonOperator } from "devextreme/common";

type ReplaceFieldTypes<TSource, TReplacement> = {
Expand All @@ -19,6 +19,7 @@ type ReplaceFieldTypes<TSource, TReplacement> = {
type IValidatorOptionsNarrowedEvents = {
onDisposing?: ((e: DisposingEvent) => void);
onInitialized?: ((e: InitializedEvent) => void);
onValidated?: ((e: ValidatedEvent) => void);
}

type IValidatorOptions = React.PropsWithChildren<ReplaceFieldTypes<Properties, IValidatorOptionsNarrowedEvents> & IHtmlOptions>
Expand Down
4 changes: 2 additions & 2 deletions packages/devextreme-vue/src/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import {
DisposingEvent,
InitializedEvent,
OptionChangedEvent,
ValidatedEvent,
} from "devextreme/ui/validator";
import {
ValidationStatus,
ValidationRuleType,
ComparisonOperator,
} from "devextreme/common";
Expand Down Expand Up @@ -42,7 +42,7 @@ const componentConfig = {
onDisposing: Function as PropType<((e: DisposingEvent) => void)>,
onInitialized: Function as PropType<((e: InitializedEvent) => void)>,
onOptionChanged: Function as PropType<((e: OptionChangedEvent) => void)>,
onValidated: Function as PropType<((validatedInfo: { brokenRule: CommonTypes.ValidationRule | CommonTypes.ValidationRule | CommonTypes.ValidationRule | CommonTypes.ValidationRule | CommonTypes.ValidationRule | CommonTypes.ValidationRule | CommonTypes.ValidationRule | CommonTypes.ValidationRule | CommonTypes.ValidationRule, brokenRules: Array<CommonTypes.ValidationRule>, isValid: boolean, name: string, status: ValidationStatus, validationRules: Array<CommonTypes.ValidationRule>, value: Record<string, any> }) => void)>,
onValidated: Function as PropType<((e: ValidatedEvent) => void)>,
validationGroup: String,
validationRules: Array as PropType<Array<CommonTypes.ValidationRule>>,
width: [Function, Number, String] as PropType<((() => number | string)) | number | string>
Expand Down

0 comments on commit 10b4fcf

Please sign in to comment.