Wrong TypeScript-types for InputText component #1674
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
This is a pure typing issue, so the normal bug-template does not make a lot of sense.
File: https://github.com/primefaces/primevue/blob/master/src/components/inputtext/InputText.d.ts
Current
Expected
modelValue?: string
is the same asmodelValue: string | undefined
, per the documentation the default is null, and the .vue file also hasprops: { modelValue: null },
. So undefined can never happen, but null is the default. Typecheckers will correctly complain if I use a potential null value as v-model: vue-tsc output:error TS2322: Type 'string | null' is not assignable to type 'string | undefined'
.This is current in master as of commit 4d1891b
The text was updated successfully, but these errors were encountered: