Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

flow type dismiss warning of `Experimental decorator usage`

I use autobind-decorator bind context to this.

But I got warning / error Experimental decorator usage (Decorators are an early stage proposal that may change)

enter image description here

How can I dismiss this warning?

like image 251
Val Avatar asked Mar 08 '23 04:03

Val


1 Answers

You need to add esproposal.decorators=ignore under the [options] section of your .flowconfig file. Note that Flow will not understand any type implications of your added decorators, it will simply ignore them.

Here is the explanation for this flag in the Flow documentation.

like image 78
Ross Solomon Avatar answered Apr 30 '23 04:04

Ross Solomon