question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DX for typed events

See original GitHub issue

Hey @devanshj, when using types events, I’m getting a confusing error message. Here’s a sample case:

1 - I have a types “UPDATE” event that requires a string value 2 - When trying send({ type: "UPDATE" }) it gives me an error (right, it is missing the value) 3 - Problem is, the error says Type '"UPDATE"' is not assignable to type '"some other type"':

Here is an example (the examples/form with this added send on line 57: Screen Shot 2021-07-28 at 9 49 43 AM

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
cassiozencommented, Jul 28, 2021

sending a PR

I’ll publish the beta after we merge this then.

1reaction
cassiozencommented, Jul 28, 2021

you apparently can bend TypeScript to your will

Stands true 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get event text from CLI | DX NetOps - Broadcom Community
Hello CA fan's, its possible to get the EVENT MSG with the ./show alarms command ??I will like to get a list of...
Read more >
Documentation: DevExtreme - JavaScript Text Box
This section describes the members used to manipulate the UI component. Events. This section describes events fired by this UI component.
Read more >
Billing and Coding: Cardiac Event Detection Monitoring - CMS
Billing and Coding: Cardiac Event Detection Monitoring ... CPT/HCPCS codes are required to be billed with specific Bill Type and Revenue Codes.
Read more >
Event handling and picking — Matplotlib 3.6.2 documentation
If picker is a callable, it is a user supplied function which determines whether the artist is hit by the mouse event. The...
Read more >
2023 ICD-10-CM Diagnosis Code R06.81
2023 ICD-10-CM Diagnosis Code R06.81 ... Type 1 Excludes. Type 1 Excludes Help ... Apnea; Apnea or apneic event; Central apnea due to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found