-
Notifications
You must be signed in to change notification settings - Fork 176
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
Added jointjs typings #301
Conversation
Correction: |
No it exposes also the objects |
Oh, interesting. Never know it works that way. Thanks. |
It's ES6 -> CommonJS interop |
I'm not sure I follow. Do you mean the missing exports in the namespace declaration? |
Nope. I tested it and it is working. |
Not sure if that is a good idea to do so, as it might backfire as the CommonJS -> ES6 interop issue. @blakeembrey , what do you think? |
@CaselIT you probably aware of it, but for reference, what I'm talking about is related to: |
I was not aware of it, thanks for pointing it out. I think I did experience something similar while writing the type definition for this library. If load this library with system.js as global the external module as it is written is incorrect, while it works when loading it as commonjs. |
Loading from script tag just means the typings needs to be ambient/global/script. So the
Currently no, unfortunately. That why I think the issue is massive. The best we can do is to stay as close to the shape of the source as possible. i.e. in this case keep it in the |
I tried to change the type definition, did you mean like they are now? They effectively are as before. https://github.com/CaselIT/typings-jointjs/blob/test-export/index.d.ts If this was what you meant, wait before merging so I can update the pull request with the new commit. |
yup. 👍 |
I've updated the pull request. |
FYI Having some difficulty to merge |
Can I help? |
It's related to the repo setting I think. So need @blakeembrey's help on it. |
I can re-fork the repo and risubmit the pull request if you think that it would help. |
Thanks. But it's not just your PR. Same for all other PRs. 😏 |
Sorry, it appeared to be an odd restriction that comes with the enablement of the squash option. It should now be fixed for collaborators. |
Filling in these fields will make it easier for us to review:
Typings URL: [E.g. https://github.com/CaselIT/typings-jointjs]
Source URL: [E.g. https://github.com/clientIO/joint]
Thanks for contributing!