Skip to content

Svelte 5: Unstate ts error with class #9870

@zhihengGet

Description

@zhihengGet

Describe the bug

when doing unstate( someClass.state) , i got ts error saying it is missing SYMBOL , code runs and unstate does convert proxy object to object but still shows ts error.

Reproduction


class  a{
   a = $state({})
}

unstate(a.a)  // ts error

Logs

No response

System Info

5.0.0-20

Severity

annoyance

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions