notifications exposed

This commit is contained in:
Sebastian 2023-09-29 16:01:59 -03:00
parent 779ddae8b8
commit c10f3f3ade
No known key found for this signature in database
GPG Key ID: 173909D1A5F66069
2 changed files with 2 additions and 10 deletions

View File

@ -1,15 +1,7 @@
export { useLang } from "./useLang.js";
export { useLocalStorage, buildStorageKey } from "./useLocalStorage.js";
export { useMemoryStorage } from "./useMemoryStorage.js";
export {
useNotifications,
notifyError,
notifyException,
notifyInfo,
notify,
ErrorNotification,
InfoNotification
} from "./useNotifications.js";
export * from "./useNotifications.js";
export {
useAsyncAsHook,
HookError,

View File

@ -54,7 +54,7 @@ export function notifyInfo(title: TranslatedString) {
});
}
type Notification = {
export type Notification = {
message: NotificationMessage;
remove: () => void;
};