Skip to content

More type annotations or type documentation please #153

@dhasenan

Description

@dhasenan

It's hard to tell what sort of parameters things take without diving into the code -- and not just looking at the source of the function I'm calling. I just got an exception inside CanvasRenderer.createPattern complaining that it received the wrong type or number of arguments. The stack trace is somewhere in the middle of CanvasRenderer.render() and probably indicates that I gave the wrong type of value to a texture or material constructor -- somewhere far away from any function in the stack trace.

Providing more type annotations where possible would help me catch these errors before I even finish typing them.

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