IjzerenHein / kiwi.js

Fast TypeScript implementation of the Cassowary constraint solving algorithm 🖖
Other
250 stars 24 forks source link

Type declaration for optional parameters #5

Closed henrikh closed 6 years ago

henrikh commented 6 years ago

Optional parameters can be declared in the type using ?.

IjzerenHein commented 6 years ago

Hi, the build is failing with this error, please fix before I can accept

src/constraint.ts(86,13): error TS1015: Parameter cannot have question mark and initializer.

henrikh commented 6 years ago

Should work now.

IjzerenHein commented 6 years ago

Awesome, thanks!

I've published a new release with this fix: https://github.com/IjzerenHein/kiwi.js/releases/tag/v1.0.2