mirror of
https://github.com/bitwarden/browser
synced 2026-02-10 21:50:15 +00:00
Makes exports consistent.
This commit is contained in:
@@ -61,13 +61,13 @@ export type AtRiskPasswordQueueMessage = NotificationQueueMessage<
|
||||
AtRiskPasswordNotificationData
|
||||
>;
|
||||
|
||||
type NotificationQueueMessageItem =
|
||||
export type NotificationQueueMessageItem =
|
||||
| AddLoginQueueMessage
|
||||
| AddChangePasswordNotificationQueueMessage
|
||||
| AddUnlockVaultQueueMessage
|
||||
| AtRiskPasswordQueueMessage;
|
||||
|
||||
type LockedVaultPendingNotificationsData = {
|
||||
export type LockedVaultPendingNotificationsData = {
|
||||
commandToRetry: {
|
||||
message: {
|
||||
command: string;
|
||||
@@ -80,26 +80,26 @@ type LockedVaultPendingNotificationsData = {
|
||||
target: string;
|
||||
};
|
||||
|
||||
type AdjustNotificationBarMessageData = {
|
||||
export type AdjustNotificationBarMessageData = {
|
||||
height: number;
|
||||
};
|
||||
|
||||
type AddLoginMessageData = {
|
||||
export type AddLoginMessageData = {
|
||||
username: string;
|
||||
password: string;
|
||||
url: string;
|
||||
};
|
||||
|
||||
type UnlockVaultMessageData = {
|
||||
export type UnlockVaultMessageData = {
|
||||
skipNotification?: boolean;
|
||||
};
|
||||
|
||||
/**
|
||||
* @todo Extend generics to this type, see Standard_NotificationQueueMessage
|
||||
* @todo Extend generics to this type, see NotificationQueueMessage
|
||||
* - use new `data` types as generic
|
||||
* - eliminate optional status of properties as needed per Notification Type
|
||||
*/
|
||||
type NotificationBackgroundExtensionMessage = {
|
||||
export type NotificationBackgroundExtensionMessage = {
|
||||
[key: string]: any;
|
||||
command: string;
|
||||
data?: Partial<LockedVaultPendingNotificationsData> &
|
||||
@@ -119,7 +119,7 @@ type BackgroundMessageParam = { message: NotificationBackgroundExtensionMessage
|
||||
type BackgroundSenderParam = { sender: chrome.runtime.MessageSender };
|
||||
type BackgroundOnMessageHandlerParams = BackgroundMessageParam & BackgroundSenderParam;
|
||||
|
||||
type NotificationBackgroundExtensionMessageHandlers = {
|
||||
export type NotificationBackgroundExtensionMessageHandlers = {
|
||||
[key: string]: CallableFunction;
|
||||
unlockCompleted: ({ message, sender }: BackgroundOnMessageHandlerParams) => Promise<void>;
|
||||
bgGetFolderData: ({ message, sender }: BackgroundOnMessageHandlerParams) => Promise<FolderView[]>;
|
||||
@@ -150,13 +150,3 @@ type NotificationBackgroundExtensionMessageHandlers = {
|
||||
bgGetActiveUserServerConfig: () => Promise<ServerConfig | null>;
|
||||
getWebVaultUrlForNotification: () => Promise<string>;
|
||||
};
|
||||
|
||||
export {
|
||||
NotificationQueueMessageItem,
|
||||
LockedVaultPendingNotificationsData,
|
||||
AdjustNotificationBarMessageData,
|
||||
UnlockVaultMessageData,
|
||||
AddLoginMessageData,
|
||||
NotificationBackgroundExtensionMessage,
|
||||
NotificationBackgroundExtensionMessageHandlers,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user