Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix TextareaProps type And Image src props #6973

Merged
merged 9 commits into from
Dec 20, 2024
4 changes: 4 additions & 0 deletions packages/primevue/src/image/Image.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ export interface ImageState {
* Defines valid properties in Image component.
*/
export interface ImageProps {
/**
* Image url.
*/
src?: string | undefined;
/**
* Controls the preview functionality.
* @defaultValue false
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 { InputHTMLAttributes } from 'vue';
import type { TextareaHTMLAttributes } 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 extends Omit<InputHTMLAttributes, 'size'> {
export interface TextareaProps extends TextareaHTMLAttributes {
/**
* Value of the component.
*/
Expand Down
Loading