Skip to content

Commit

Permalink
Fixed #6867
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Nov 26, 2024
1 parent 05530cc commit 442026d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/primevue/src/inputtext/InputText.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import type { DefineComponent, DesignToken, EmitFn, Nullable, PassThrough } from '@primevue/core';
import type { ComponentHooks } from '@primevue/core/basecomponent';
import type { PassThroughOptions } from 'primevue/passthrough';
import 'vue';
import { InputHTMLAttributes } from 'vue';

export declare type InputTextPassThroughOptionType<T = any> = InputTextPassThroughAttributes | ((options: InputTextPassThroughMethodOptions<T>) => InputTextPassThroughAttributes | string) | string | null | undefined;

Expand Down Expand Up @@ -82,7 +82,7 @@ export interface InputTextContext {
/**
* Defines valid properties in InputText component.
*/
export interface InputTextProps {
export interface InputTextProps extends Omit<InputHTMLAttributes, 'size'> {
/**
* Value of the component.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/primevue/src/password/Password.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export interface PasswordMeterStateOptions {
/**
* Defines valid properties in Password component.
*/
export interface PasswordProps {
export interface PasswordProps extends Omit<InputHTMLAttributes, 'size'> {
/**
* Value of the component.
*/
Expand Down
4 changes: 2 additions & 2 deletions packages/primevue/src/textarea/Textarea.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import type { DefineComponent, DesignToken, EmitFn, Nullable, PassThrough } from '@primevue/core';
import type { ComponentHooks } from '@primevue/core/basecomponent';
import type { PassThroughOptions } from 'primevue/passthrough';
import 'vue';
import { InputHTMLAttributes } from 'vue';

export declare type TextareaPassThroughOptionType = TextareaPassThroughAttributes | ((options: TextareaPassThroughMethodOptions) => TextareaPassThroughAttributes | string) | string | null | undefined;

Expand Down Expand Up @@ -86,7 +86,7 @@ export interface TextareaContext {
/**
* Defines valid properties in Textarea component. In addition to these, all properties of TextareaHTMLAttributes can be used in this component.
*/
export interface TextareaProps {
export interface TextareaProps extends Omit<InputHTMLAttributes, 'size'> {
/**
* Value of the component.
*/
Expand Down

0 comments on commit 442026d

Please sign in to comment.