From 8462b80c4097faea819301605c5ec2ce6567697a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Mon, 30 May 2022 11:56:27 +0300 Subject: [PATCH] Fixed #2576 - Add null types to InputText and Password --- src/components/inputtext/InputText.d.ts | 4 ++-- src/components/password/Password.d.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/inputtext/InputText.d.ts b/src/components/inputtext/InputText.d.ts index ad025b845..afe880f98 100755 --- a/src/components/inputtext/InputText.d.ts +++ b/src/components/inputtext/InputText.d.ts @@ -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; } export interface InputTextSlots { diff --git a/src/components/password/Password.d.ts b/src/components/password/Password.d.ts index 10d4a8353..eeaf7a6c9 100755 --- a/src/components/password/Password.d.ts +++ b/src/components/password/Password.d.ts @@ -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; /** * Text to prompt password entry. Defaults to PrimeVue Locale configuration. */