Skip to content

How to access defineVars type information at runtime? #873

Answered by nmn
zaydek asked this question in Q&A
Discussion options

You must be logged in to vote

There is no runtime information about the type of the variable and I don't think we'd add it. The TS types already exist and you should able to write other types to leverage that.

Can you give me a bit more detail on what you're trying to do?


Prefix the variable name

If you need runtime information, you can always prefix your own variables or group them by type.

colorVars.foo, lengthVar.foo, etc.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@nmn
Comment options

nmn Jan 29, 2025
Collaborator

@zaydek
Comment options

@zaydek
Comment options

@nmn
Comment options

nmn Jan 30, 2025
Collaborator

@zaydek
Comment options

Answer selected by zaydek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants