trepmag commented on pull request #14120:
URL: https://github.com/apache/superset/pull/14120#issuecomment-837968796


   @suddjian, indeed, removing the `as Filter` render a compiler ERROR:
   ```$
   TS2322: Type '{ Header: string; id: string; urlDisplay: string; input: 
string; operator: FilterOperator; unfilteredLabel: string; selects: { label: 
string; value: boolean; }[]; }' is not assignable to type 'Filter'.
     Types of property 'input' are incompatible.
       Type 'string' is not assignable to type '"select" | "textarea" | "text" 
| "search" | "checkbox" | "datetime_range" | undefined'.
   ```
   
   At this moment I can't figure a way to remove this type casting for this 
conditional definition...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to