Subscribe on changes!

Using slots in recursive components ts type verification failed

avatar
Jul 21st 2022

Vue version

3.2.37

Link to minimal reproduction

https://github.com/yixinagqingyuan/treelist

Steps to reproduce

The problem of using recursive component TS verification is as follows:

image

What is expected?

No TS error warning

What is actually happening?

There are TS error warnings

System Info

System:
    OS: macOS 12.4
    CPU: (8) arm64 Apple M1
    Memory: 78.77 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node
    Yarn: 1.22.17 - /opt/homebrew/bin/yarn
    npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm
  Browsers:
    Chrome: 103.0.5060.134
    Firefox: 95.0.2
    Safari: 15.5
  npmPackages:
    vue: ^3.2.37 => 3.2.37

Any additional comments?

No response