How can I get the value of a type on runtime?
i tried using @Tesmi 's reflection library but the transformer doesn't seem to work with unions, are there any other methods?


Solution:Jump to solution
solved
```typescript
/** @metadata macro */
export function getTypeValue<T>(meta?: Modding.Many<T extends Array<string> ? T : never>) {
return meta;...
6 Replies
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
the current transformator doesn't work well with these types, I don't recommend using this library in real work
i don't wanna use an enum because i'd have to add it manually everytime i have a new state
are there alternatives?
I didn't quite understand what you wanted to do?
you can read the images on what the variables are supposed to be
Solution
solved
using flamework's modding api