This branch tries to split up the createNotification types from implementation. Also it couples up the UseNotification type with the Emitter type as I can't think of any scenario in wich the Emitter api would have a different reason to change than the useNotification hook (alas, the duplication of those types violates DRY)
How to test?
Test as in the documentation. This PR aims to change no executed code behavior, only the types
Description
This branch tries to split up the
createNotification
types from implementation. Also it couples up theUseNotification
type with theEmitter
type as I can't think of any scenario in wich the Emitter api would have a different reason to change than the useNotification hook (alas, the duplication of those types violates DRY)How to test?
Test as in the documentation. This PR aims to change no executed code behavior, only the types
Base branch
typescript-refactor