-
How can we add magic constants to declaration file functions? I.e. indicate that a function accepts a string but only expects a few different magic string values? |
Beta Was this translation helpful? Give feedback.
Answered by
lenscas
Sep 24, 2024
Replies: 1 comment 3 replies
-
You can use enums. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
hishamhm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use enums.