Skip to content

Property 'registerMethod' does not exist on type #116

@error-four-o-four

Description

@error-four-o-four

Hey there,

as the title says, the method 'registerMethod' of the p5 prototype isn't recognized by typescript.
I encountered this issue while running p5 in instance mode. E.g.:

p5.prototype.registerMethod('init', function init(this: p5) {
  console.log('registered');
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions