Skip to content

Commit

Permalink
Fixed #6995
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Dec 27, 2024
1 parent ca31fca commit 1d0e363
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions packages/primevue/src/inputotp/InputOtp.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 1d0e363

Please sign in to comment.