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

Related issues

NgoKnows picture NgoKnows  路  40Comments

cletusw picture cletusw  路  52Comments

sophiebits picture sophiebits  路  66Comments

gcanti picture gcanti  路  48Comments

vjpr picture vjpr  路  55Comments