We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Since the commit bd1dc27 such a code doesn't compile anymore (the issue is at console.log([value.id])):
console.log([value.id])
import { ValueType, ActionMeta } from "react-select/lib/types"; interface IOptionType { id: number; name: string; }; function mappedOnChange(value: ValueType<IOptionType>) { if (value) { if (value instanceof Array) { console.log(value.map(i => i.id)); } else { console.log([value.id]); } } }
The text was updated successfully, but these errors were encountered:
correction bug DefinitelyTyped#35708
e47a3e9
Actually, the issue is not here but in TypeScript it self. here is the issue with the workaround mentioned at the end: microsoft/TypeScript#17002
Sorry, something went wrong.
No branches or pull requests
Since the commit bd1dc27 such a code doesn't compile anymore (the issue is at
console.log([value.id])
):The text was updated successfully, but these errors were encountered: