Merge pull request #2582 from tugcekucukoglu/nullable

Fixed #2576 - Add null types to InputText and Password
pull/2584/head
Tuğçe Küçükoğlu 2022-05-30 11:56:44 +03:00 committed by GitHub
commit 06f36a75ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.
*/