Flow: Flow annotations with destructuring operator

Created on 16 Apr 2016  路  1Comment  路  Source: facebook/flow

I am facing issue in specifying flow annotations with destructuring operator like this:

({ className: String, style: Object })

Thanks in advance for help :)

Most helpful comment

I found fix, it works like this: ({ className, style } : Object)

>All comments

I found fix, it works like this: ({ className, style } : Object)

Was this page helpful?
0 / 5 - 0 ratings