diff --git a/packages/primevue/src/inputotp/InputOtp.d.ts b/packages/primevue/src/inputotp/InputOtp.d.ts index b660f7718..26cb188d1 100755 --- a/packages/primevue/src/inputotp/InputOtp.d.ts +++ b/packages/primevue/src/inputotp/InputOtp.d.ts @@ -41,6 +41,21 @@ export interface InputOtpPassThroughMethodOptions { global: object | undefined; } +/** + * Custom change event. + * @see {@link InputOtpEmitsOptions.change} + */ +export interface InputOtpChangeEvent { + /** + * Browser event + */ + originalEvent: Event; + /** + * Value of the input + */ + value: string; +} + /** * Custom shared passthrough(pt) option method. */ @@ -252,19 +267,19 @@ export interface InputOtpSlots { export interface InputOtpEmitsOptions { /** * Emitted when the value changes. - * @param {boolean} value - New value. + * @param {string} value - New value. */ - 'update:modelValue'(value: boolean): void; + 'update:modelValue'(value: string): void; /** * Emitted when the value changes in uncontrolled mode. - * @param {boolean} value - New value. + * @param {string} value - New value. */ - 'value-change'(value: boolean): void; + 'value-change'(value: string): void; /** * Callback to invoke on value change. - * @param {Event} event - Browser event. + * @param {InputOtpChangeEvent} event - Custom change event. */ - change(event: Event): void; + change(event: InputOtpChangeEvent): void; /** * Callback to invoke when the component receives focus. * @param {Event} event - Browser event.