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

docs: add section about isolated declarations #514

Merged
merged 2 commits into from
May 20, 2024
Merged

Conversation

lucacasonato
Copy link
Member

@lucacasonato lucacasonato commented May 14, 2024

Fixes #495

However, there are some differences between the two:

- Isolated declarations require that all symbols that are exported from a module
follow the "no inference" rules. JSR only requires that symbos that are
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
follow the "no inference" rules. JSR only requires that symbos that are
follow the "no inference" rules. JSR only requires that symbols that are

- Isolated declarations require that all symbols that are exported from a module
follow the "no inference" rules. JSR only requires that symbos that are
actually part of the public API of a package follow the "no inference" rules.
- Isolated declarations is sometimes more strict than JSR. For example, isolated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Should we show an example of what that looks like? Not sure if JS devs are familiar with the term function expression body.

Base automatically changed from docs_ignoring_slow_types to main May 15, 2024 10:58
@lucacasonato lucacasonato added this pull request to the merge queue May 20, 2024
Merged via the queue into main with commit 9c2c1ed May 20, 2024
8 checks passed
@lucacasonato lucacasonato deleted the comparing_to_id branch May 20, 2024 13:28
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.

None yet

2 participants