Error - At least one of the custom notification kinds you provided for 'ActivitiesData' does not match its requirements
Why this error occurred
You have provided a custom ActivitiesData type for your application, but the
type you provided isn’t a (completely) valid definition.
In the example above, there are two problems. Activities data may only contain
simple key/value pairs, where the values must always be assignable to
string | number | boolean | undefined and custom notification kinds must start
with $.
How to fix it
You’ll need to figure out what part of your provided ActivitiesData type
definition isn’t valid. The example above could be fixed as such:
If you cannot find the root cause
Sometimes types can be complex and the root cause is still unclear. In those cases, there is a small trick you can use. Try to assign your type to the required base type, with this line:
Now TypeScript will explain why it thinks your type isn’t valid: