Skip to content

ref type broken for HTMLElement #951

Closed
@mwerschy

Description

@mwerschy

Version

3.0.0-alpha.12

Reproduction link

https://codesandbox.io/s/infallible-https-w248t?file=/src/index.ts

Steps to reproduce

Note the error on line 4 of index.ts.

What is expected?

ref<HTMLElement | null>(null) is assignable to a variable of type Ref<HTMLElement | null>.

What is actually happening?

Type 'Ref<{ accessKey: string; readonly accessKeyLabel: string; autocapitalize: string; dir: string; draggable: boolean; hidden: boolean; innerText: string; lang: string; readonly offsetHeight: number; ... 232 more ...; focus: (options?: FocusOptions) => void; }>' is not assignable to type 'Ref<HTMLElement>'.

Perhaps some issue with symbols in the UnwrapRef declaration? The full error includes the line Property '[Symbol.iterator]' is missing in type.

Metadata

Metadata

Assignees

Labels

🐞 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions