Created
October 2, 2018 15:51
-
-
Save inakianduaga/31648e045ca9395776ed9d7d1d07f31a to your computer and use it in GitHub Desktop.
Typesafe CustomEvents on your Frontend - Production Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// somewhere in another app... | |
import { ListPage, strictCustomEvent } from "@autoscout24/custom-events"; | |
document.dispatchEvent( | |
strictCustomEvent(ListPage.ClassifiedListTotalCountUpdate, { | |
detail: { | |
totalCount: 42 | |
} | |
}) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment