Skip to content

Adding a class with addSerializableClass() shows an error #32

@wojexe

Description

@wojexe

I have encountered the attached error message when I tried adding my class to be serializable with addSerializableClass().

This example 03-Store-Classes.md seems to show the error message as well.

Argument of type 'typeof NameHolder' is not assignable to parameter of type'FunctionConstructor'. Types of property 'prototype' are incompatible. Type 'NameHolder' is missing the following properties from type 'Function': apply, call, bind, prototype, and 4 more. js(2345) 

edit:
I understand, this might not be a problem of package itself, but I think that it's worth mentioning, that such error might occur. As for now, I was able to just ignore the error and everything seems to work as expected.
I have also created a quick CodeSandbox with the example and there is no such error in there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requestedversion 2.x

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions