1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-08 00:01:28 +01:00

revert type changes

This commit is contained in:
jaasen-livefront 2024-09-17 13:47:46 -07:00
parent d516c308da
commit a151f40e3b
No known key found for this signature in database
4 changed files with 4 additions and 7 deletions

View File

@ -23,7 +23,6 @@ export function extensionRefreshSwap(
defaultComponent,
refreshedComponent,
async () => {
return true;
const configService = inject(ConfigService);
return configService.getFeatureFlag(FeatureFlag.ExtensionRefresh);
},

View File

@ -26,7 +26,6 @@ export class SendView implements View {
password: string = null;
disabled = false;
hideEmail = false;
hideText = false;
constructor(s?: Send) {
if (!s) {

View File

@ -8,7 +8,6 @@ import { SendFileDownloadDataResponse } from "../models/response/send-file-downl
import { SendFileUploadDataResponse } from "../models/response/send-file-upload-data.response";
import { SendResponse } from "../models/response/send.response";
import { SendAccessView } from "../models/view/send-access.view";
import { SendView } from "../models/view/send.view";
export abstract class SendApiService {
getSend: (id: string) => Promise<SendResponse>;
@ -37,5 +36,5 @@ export abstract class SendApiService {
renewSendFileUploadUrl: (sendId: string, fileId: string) => Promise<SendFileUploadDataResponse>;
removePassword: (id: string) => Promise<any>;
delete: (id: string) => Promise<any>;
save: (sendData: [Send, EncArrayBuffer]) => Promise<SendView>;
save: (sendData: [Send, EncArrayBuffer]) => Promise<any>;
}

View File

@ -4,7 +4,7 @@ import { UserKeyRotationDataProvider } from "@bitwarden/auth/common";
import { EncArrayBuffer } from "../../../platform/models/domain/enc-array-buffer";
import { SymmetricCryptoKey } from "../../../platform/models/domain/symmetric-crypto-key";
import { SendId, UserId } from "../../../types/guid";
import { UserId } from "../../../types/guid";
import { UserKey } from "../../../types/key";
import { SendData } from "../models/data/send.data";
import { Send } from "../models/domain/send";
@ -54,7 +54,7 @@ export abstract class SendService implements UserKeyRotationDataProvider<SendWit
}
export abstract class InternalSendService extends SendService {
upsert: (send: SendData | SendData[]) => Promise<Record<SendId, SendData>>;
upsert: (send: SendData | SendData[]) => Promise<any>;
replace: (sends: { [id: string]: SendData }, userId: UserId) => Promise<void>;
delete: (id: string | string[]) => Promise<void>;
delete: (id: string | string[]) => Promise<any>;
}