Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

typescript: TypeError: c.getName is not a function #250

Description

@cfortuner

TypeError: c.getName is not a function

https://github.com/MozillaReality/ecsy/blob/7795dc02cef72b4b8af80275b06a8ff8e84547da/src/System.js#L61

Typescript is complaining that this function does not exist

https://github.com/MozillaReality/ecsy/blob/dev/src/Component.d.ts

But it does.
https://github.com/MozillaReality/ecsy/blob/7795dc02cef72b4b8af80275b06a8ff8e84547da/src/Component.js#L72

I'm not sure if this is my own typescript settings or if this type needs to be added, but the message is a bit vague.

Let me know and I can open a pr!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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