Fixed #2576 - Add null types to InputText and Password

pull/2582/head
Tuğçe Küçükoğlu 2022-05-30 11:56:27 +03:00
parent ca3a6b7493
commit 8462b80c40
2 changed files with 4 additions and 4 deletions

View File

@ -1,11 +1,11 @@
import { InputHTMLAttributes } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers';
export interface InputTextProps extends InputHTMLAttributes {
/**
* Value of the component.
*/
modelValue?: string | undefined;
modelValue?: Nullable<string>;
}
export interface InputTextSlots {

View File

@ -1,5 +1,5 @@
import { VNode, InputHTMLAttributes } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers';
type PasswordAppendToType = 'body' | 'self' | string | undefined;
@ -7,7 +7,7 @@ export interface PasswordProps extends InputHTMLAttributes {
/**
* Value of the component.
*/
modelValue?: string | undefined;
modelValue?: Nullable<string>;
/**
* Text to prompt password entry. Defaults to PrimeVue Locale configuration.
*/