Skip to content

Commit eb12b1c

Browse files
author
Kyle Andrews
committed
Added notify function export
1 parent 188a4de commit eb12b1c

File tree

7 files changed

+36
-222
lines changed

7 files changed

+36
-222
lines changed

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.0.1] - 2020-01-09
11+
12+
### Added
13+
14+
- new `notify` export providing access to a global notification manager
15+
16+
### Removed
17+
18+
- [http-server](https://www.npmjs.com/package/http-server) dev dependency
19+
1020
## [1.0.0] - 2019-12-15
1121

1222
### Added
@@ -36,6 +46,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3646

3747
- Entire existing codebase due to rewrite
3848

39-
[Unreleased]: https://github.com/codewithkyle/notifyjs/compare/v1.0.0...HEAD
49+
[Unreleased]: https://github.com/codewithkyle/notifyjs/compare/v1.0.1...HEAD
50+
[1.0.1]: https://github.com/codewithkyle/notifyjs/compare/v1.0.0...v1.0.1
4051
[1.0.0]: https://github.com/codewithkyle/notifyjs/compare/v0.2.0...v1.0.0
4152
[0.2.0]: https://github.com/codewithkyle/notifyjs/compare/v0.1.0...v0.2.0

Notify.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface SnackbarNotification {
1212
element?: HTMLElement;
1313
force?: boolean;
1414
}
15-
export declare class NotificationManager {
15+
declare class NotificationManager {
1616
private _queue;
1717
private _callback;
1818
private _isRunning;
@@ -29,4 +29,5 @@ export declare class NotificationManager {
2929
private validateNotification;
3030
notify(notification: SnackbarNotification): void;
3131
}
32-
export {};
32+
declare const notify: (notification: SnackbarNotification) => void;
33+
export { NotificationManager, notify };

Notify.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Notify.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)