Skip to content

Commit

Permalink
Merge pull request #2582 from tugcekucukoglu/nullable
Browse files Browse the repository at this point in the history
Fixed #2576 - Add null types to InputText and Password
  • Loading branch information
tugcekucukoglu authored May 30, 2022
2 parents ca3a6b7 + 8462b80 commit 06f36a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/inputtext/InputText.d.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/components/password/Password.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { VNode, InputHTMLAttributes } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers';

type PasswordAppendToType = 'body' | 'self' | string | undefined;

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.
*/
Expand Down

0 comments on commit 06f36a7

Please sign in to comment.