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
type Test = Map<string, any> const test: Test = Immutable.Map({...}) const { a, b, c } = test
property 'a'. Property not found on Map.
type Test = { a: number, b: number, c: string, } const test: Test = Immutable.Map({...}) const a = test.get('a')
Flow: property 'get'. Property not found in object type
type Test = { get: Function, set: Function, a: number, b: number, c: string, } const test: Test = Immutable.Map({...}) const a = test.get('a') const { b, c } = test
this is OK but bit strange for use. if i use getIn or merge, I have to define that function also.
The text was updated successfully, but these errors were encountered:
I found some tricky ways to solve this
type Test = Map<string, any> & { a?: number, b?: number, c?: string, }
Sorry, something went wrong.
No branches or pull requests
property 'a'. Property not found on Map.
Flow: property 'get'. Property not found in object type
this is OK but bit strange for use. if i use getIn or merge, I have to define that function also.
The text was updated successfully, but these errors were encountered: