Skip to content

Type errors on IFlags #314

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

Open
jhoermann opened this issue Apr 29, 2025 · 0 comments
Open

Type errors on IFlags #314

jhoermann opened this issue Apr 29, 2025 · 0 comments

Comments

@jhoermann
Copy link
Contributor

I tried fixing the types of flagsmith-vue in jhoermann/flagsmith-vue#254 but there are some issues that I'm getting from the flagsmith types:

Image

Since the flags now also allow the type to be Record<string, any> it can't be passed to the IFlags type which is string only.
Strangely your type-checker doesn't seem to notice it - maybe its some sort setting.

Maybe it can be resolved with something like IFlags<F extends Record<string, any> ? keyof F : F>?

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

No branches or pull requests

1 participant