title: Type {} is not assignable to type CSSProperties. typescript
body: <p>How can I assign inline CSS to an element?
  I get an error if I write this, the error is:</p>
  <blockquote>
  <p>Type '{ backgroundColor: string; color: string; marginRight: number;
  borderRadius: number; borderRight: number; borderLeft: number;
  borderTop: number; borderBottom: string | false; }' is not assignable
  to type 'CSSProperties'.   Types of property 'borderBottom' are
  incompatible.     Type 'string | false' is not assignable to type
  'string | number | (string &amp; {}) | undefined'.       Type 'false' is
  not assignable to type 'string | number | (string &amp; {}) | undefined'.</p>
  </blockquote>
  <pre><code>&lt;span style={{backgroundColor:backgroundColor,color:color,marginRight:3,borderRadius:4,borderRight:0,borderLeft:0,borderTop:0,borderBottom: isCurrent &amp;&amp; '3px solid #00416d'}}&gt;{Symbol}&lt;/span&gt; 
  </code></pre>