This is a simple change to improve typesafe usage of the notify package, which is backwards compatible with clients, providing the kind is supplied as literal.
I considered making Kind an interface (modeled on Error), but that would not be backwards compatible. Further, it is not clear that Kind needs to be more than a string.
This is a simple change to improve typesafe usage of the
notify
package, which is backwards compatible with clients, providing the kind is supplied as literal.I considered making
Kind
an interface (modeled onError
), but that would not be backwards compatible. Further, it is not clear thatKind
needs to be more than a string.