Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript support? #27

Open
navono opened this issue Sep 22, 2018 · 2 comments
Open

Typescript support? #27

navono opened this issue Sep 22, 2018 · 2 comments

Comments

@navono
Copy link

navono commented Sep 22, 2018

No description provided.

@HriBB
Copy link
Collaborator

HriBB commented Oct 26, 2018

@navono this library uses @flow, but you're welcome to create Typescript definitions ;)

@HriBB
Copy link
Collaborator

HriBB commented Sep 14, 2022

@navono the new version 3 uses typescript by default.

Note that types still need a lot of work, because paper.js types are missing a lot of overloads, so we need to manually override them. For example, you will get an error if you pass paper.Point as an array [x, y], because paper.js typings require new paper.Point([x, y]).

Check out the pull request waiting to be merged

At the moment I am manually overriding types like this.

@HriBB HriBB changed the title Typescript supports? Typescript support? Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants