Skip to content

Conversation

@zemlanin
Copy link
Contributor

@zemlanin zemlanin commented Nov 14, 2025

  • Originally, I've tried E extends HTMLElement = HTMLElement, but that made the new type arg effectively required because of Type 'RefObject<HTMLElement>' is not assignable to type 'Ref<HTMLDivElement>'.
  • src/App.tsx should passes type check without changes in this PR, but adding the new type arg seemed like a correct thing to do in the example

- Originally, `E` was `extends HTMLElement = HTMLElement`, but that made the new type arg effectively requred because of `Type 'RefObject<HTMLElement>' is not assignable to type 'Ref<HTMLDivElement>'.`
- `src/App.tsx` should passes type check without changes in this commit, but adding the new type arg seemed like a correct thing to do in the example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants