Skip to content

Refactor/document Leopard source code as TypeScript #131

Closed
@towerofnix

Description

@towerofnix

See a recent comment: #119 (comment)

Incorrect method name. Errors when using this.touching("edge") while a speech bubble is active.

(I got very lucky! My test project happened to include this case. We could consider using Typescript to avoid these kinds of errors and also to provide type hints for people using Leopard.)

See also discussion in #128—since we're already working with a build step, it wouldn't add any new steps to the current development workflow.

Bonus reason for writing Leopard in TypeScript: sb-edit uses TypeScript, and it's good to be consistent across the two connected codebases!

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