Skip to content

Beta: Mostly type fixes

Pre-release
Pre-release
Compare
Choose a tag to compare
@secretlifeof secretlifeof released this 01 Sep 08:45
· 78 commits to master since this release

This one adds types so that shortcuts (i.e. "c") can be used without type error and values associated with a property (i.e. "color") are connected to the shortcut (i.e. "c").

Problems that need fixing

// returns type any
const Boxa = Box.with() 
// therefor this has no autocomplete
const fn = () => <Boxa>Hello</Boxa>

// no type checking from with function
const Beatbox = Boxa.with({ c: 'blue' })
  • fix types e38eafa
  • add description to components 06cc0f5
  • added precedence to normal selectors ae0f9ca
  • add types - missing shortcuts 626edc3

changes