A Vue project with minimal setup and dependencies for reproducing vetur#2898 and vue-next#3760.
- Install latest version of Vetur
git clone [email protected]:octref/veturpack.git
cd veturpack
yarn install
code .
- Set
"strict": true
in the tsconfig that manages the vue file in question. - Create a function callback signature type to use as a prop type
- Add a prop whose type is
Function
and default isnull
- Augment the function type with a
PropType
that includes your custom callback signature andnull
- Observe error
MIT