Skip to content
New issue

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

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

Already on GitHub? # to your account

docs: example of enum in JSDoc #3259

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

docs: example of enum in JSDoc #3259

wants to merge 1 commit into from

Conversation

turadg
Copy link

@turadg turadg commented Oct 18, 2024

The https://www.typescriptlang.org/docs/handbook/enums.html page explains how in .ts syntax to use plain JS objects for an enum.

This adds an example for .js syntax.

Playground example

@turadg
Copy link
Author

turadg commented Oct 18, 2024

@microsoft-github-policy-service agree

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant