Type derivation of prop when using TypeScript in Vue

when prop type is Number, String, Boolean, the type can be deduced correctly, as shown in the following figure:

clipboard.png

type Object any

clipboard.png

Object :

clipboard.png

options.d.ts prop type :

clipboard.png

is full of doubts about the type of Prop < T > in the screenshot above. How can it give a type hint?

Mar.22,2021
Menu