Closed Saul-Mirone closed 2 years ago
This is likely a typescript issue. Please specify which typescript version are you using.
This is likely a typescript issue. Please specify which typescript version are you using.
4.6.2
After a little investigation. I think it's not a typescript issue.
You define the YEvent as a generic class here: https://github.com/yjs/yjs/blob/main/src/utils/YEvent.js#L11
If you want to give it a default value, I think you can use:
/**
* @template {AbstractType<any>} [T = AbstractType<any>]
* YEvent describes the changes on a YType.
*/
Do you want me to put out a PR for this?
A gentle ping @dmonad
Checklist
Describe the bug
To Reproduce Steps to reproduce the behavior:
renovate/lock-file-maintenance
branchpnpm install && pnpm build:packs
Expected behavior A clear and concise description of what you expected to happen. Typesciript can compile with no error.
Screenshots If applicable, add screenshots to help explain your problem.
Environment Information
Additional context Add any other context about the problem here.