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

Clearer API documentation for Quill.import method #2939

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

natevw
Copy link

@natevw natevw commented Feb 20, 2020

This wording makes it more clear that Quill.import is ± just the getter corresponding to Quill.register's setter, and that the relationship between Quill's own source code and any "path" of those objects is simply a convention.

(I wrote this assuming that Quill.imports is internal API but since it was already mentioned elsewhere in the public docs it seemed fitting to share a similar tip here.)

Fixes #2938.

Make it more clear that `Quill.import` is just the read to `Quill.register`'s write, and that the relationship between Quill source code and an object's "path" is simply a convention.

I wrote this assuming that `Quill.imports` is internal API but since it was already mentioned elsewhere in the public docs it seemed fitting to share a similar tip here.
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

Successfully merging this pull request may close these issues.

Documentation obfuscates Quill.import usage, making it unclear e.g. how to import non-default exports
1 participant