Document IEvent.properties, fix IWelcomeScreenLoad

IEvent.properties is a placeholder that needs to be overriden by extenders for type validation to take place.

IWelcomeScreenLoad should have had properties declared for it. Because it didn't, a faulty call using it was possible.
This commit is contained in:
James Salter 2021-07-28 16:43:13 +01:00
parent 13ef819ba6
commit b1bd5f57a4
2 changed files with 7 additions and 6 deletions

View file

@ -76,6 +76,6 @@ export default class Welcome extends React.PureComponent<IProps> {
}
componentDidMount() {
getAnalytics().trackAnonymousEvent<IWelcomeScreenLoad>("welcome_screen_load", { foo: "bar" });
getAnalytics().trackAnonymousEvent<IWelcomeScreenLoad>("welcome_screen_load", {});
}
}