Skip to content

Commit

Permalink
docs: fix missing object to read from for listen example (#5505)
Browse files Browse the repository at this point in the history
  • Loading branch information
webbertakken committed Oct 29, 2022
1 parent a178f95 commit 35264b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tooling/api/src/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export enum TauriEvent {
* ```typescript
* import { listen } from '@tauri-apps/api/event';
* const unlisten = await listen<string>('error', (event) => {
* console.log(`Got error in window ${event.windowLabel}, payload: ${payload}`);
* console.log(`Got error in window ${event.windowLabel}, payload: ${event.payload}`);
* });
*
* // you need to call unlisten if your handler goes out of scope e.g. the component is unmounted
Expand Down

0 comments on commit 35264b4

Please sign in to comment.