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

type error in Range in latest version #1219

Open
MMT-LD opened this issue Aug 16, 2022 · 1 comment
Open

type error in Range in latest version #1219

MMT-LD opened this issue Aug 16, 2022 · 1 comment
Labels

Comments

@MMT-LD
Copy link

MMT-LD commented Aug 16, 2022

Hey!

i updated to 15.6.1 and since then i receive the below error.

Type '{ min: [number]; '10%': number[]; '50%': number[]; max: [number]; }' is not assignable to type 'Range'.
  Object literal may only specify known properties, and ''10%'' does not exist in type 'Range'.ts(2322)
nouislider.d.ts(112, 5): The expected type comes from property 'range' which is declared here on type 'Options'

Reverting to previous version fixes this issue for me.

i'm using 4.1.2 typescript. We can't upgrade this yet. Thought i would let you know.

@leongersen leongersen added the Bug Confirmed bugs label Aug 16, 2022
@leongersen
Copy link
Owner

This type of template literal is supported from TypeScript 4.4 and was added as the type for the key in Range in #1218. I'm looking into what I can do to annotate this.

@leongersen leongersen added Tooling and removed Bug Confirmed bugs labels Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants