Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Permit observables as values in style objects in Typescript + JSX
This fixes a mismatch between the currently exposed JSX typings and the API for style values. For example, function Blink() { const hidden = observable(false); setTimeout(() => hidden(!hidden()), 1000); return ( <span style={{ visibility: () => hidden() ? 'visible' : 'hidden' }}> blink tag? </span> ); } is now permitted in the Typescript types for JSX, where it wasn't before.
- Loading branch information