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

Generate static .keys property #308

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Conversation

daogrady
Copy link
Contributor

@daogrady daogrady commented Sep 4, 2024

Fixes #294

@daogrady daogrady changed the title Generate statis .keys property Generate static .keys property Sep 4, 2024
@daogrady
Copy link
Contributor Author

Hi @siarhei-murkou,

I have adjusted the .keys property as discussed to use an internal Symbol as key to make it unaccessible inside of handlers.
You can get an idea of which usage is allowed and which is not from the associated test file.
Please let me know if this covers the cases we were discussing.

Best,
Daniel

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.

[FEATURE] Expose 'keys' & 'gens' as static props per each compiled CDS entity
1 participant