with-heart

Results 90 comments of with-heart

Original inspiration for this repo concept: https://github.com/storybookjs/community Might give some ideas for content/structure/etc.

Ahhh after a little more digging, it's because `TEvent` is narrowed by the generated types to the `eventsCausingActions` entry types. As it should be. The calls in `without-typegen.ts` are only...

Random thoughts bouncing around in my head rn: - Typegen detects presence of `TSentEvent` param and generates+replaces 2nd arg with correctly-narrowed event type, so we don't have to manually widen/narrow...

> Thank you for those! This is an awesome contribution. I'm gonna get to fixing those soon. I might take a stab at a fix as well, just to see...

I should probably add the docs in a separate PR instead so we can add a version `Badge`

Updated the example in docs/changeset to show a mix of `type` strings, objects, and functions

RIP `createModel`, you were a good experiment

Thanks for the encouragement @davidkpiano! Already have a few rules working 😁

I need to think about how this would behave but after talking to @Andarist earlier, we likely need a rule to encourage static configs. Bidirectional editing between code and Studio...

> as long as it's not **shared anywhere non-machine-related** Can you clarify what that means?