InputText d.ts updated

pull/3689/head
Tuğçe Küçükoğlu 2023-03-01 11:50:38 +03:00
parent 4fe044afb8
commit d14f89209b
1 changed files with 33 additions and 13 deletions

View File

@ -1,6 +1,18 @@
/**
*
* InputText renders a text field to enter data.
*
* [Live Demo](https://www.primevue.org/inputtext/)
*
* @module inputtext
*
*/
import { InputHTMLAttributes } from 'vue'; import { InputHTMLAttributes } from 'vue';
import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers'; import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers';
/**
* Defines valid properties in InputText component.
*/
export interface InputTextProps extends InputHTMLAttributes { export interface InputTextProps extends InputHTMLAttributes {
/** /**
* Value of the component. * Value of the component.
@ -8,17 +20,34 @@ export interface InputTextProps extends InputHTMLAttributes {
modelValue?: Nullable<string>; modelValue?: Nullable<string>;
} }
/**
* Defines valid slots in InputText component.
*/
export interface InputTextSlots {} export interface InputTextSlots {}
export declare type InputTextEmits = { /**
* Defines valid emits in InputText component.
*/
export interface InputTextEmits {
/** /**
* Emitted when the value changes. * Emitted when the value changes.
* @param {string} value - New value. * @param {string} value - New value.
*/ */
'update:modelValue': (value: string | undefined) => void; 'update:modelValue'(value: string | undefined): void;
}; }
declare class InputText extends ClassComponent<InputTextProps, InputTextSlots, InputTextEmits> {} /**
* **PrimeVue - InputText**
*
* _InputText renders a text field to enter data._
*
* [Live Demo](https://www.primevue.org/inputtext/)
* --- ---
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
*
* @group Component
*/
export declare class InputText extends ClassComponent<InputTextProps, InputTextSlots, InputTextEmits> {}
declare module '@vue/runtime-core' { declare module '@vue/runtime-core' {
interface GlobalComponents { interface GlobalComponents {
@ -26,13 +55,4 @@ declare module '@vue/runtime-core' {
} }
} }
/**
*
* InputText renders a text field to enter data.
*
* Demos:
*
* - [InputText](https://www.primefaces.org/primevue/inputtext)
*
*/
export default InputText; export default InputText;