1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-02 01:33:22 +00:00

[PM-25688] Migrate folder.request.ts to TS strict

This commit is contained in:
Shane
2025-11-06 14:36:04 -08:00
parent d9b522a341
commit 89d06d5069

View File

@@ -1,11 +1,12 @@
// FIXME: Update this file to be type safe and remove this and next line
// @ts-strict-ignore
import { Folder } from "../domain/folder";
export class FolderRequest {
name: string;
constructor(folder: Folder) {
this.name = folder.name ? folder.name.encryptedString : null;
if (folder.name?.encryptedString == null) {
throw new Error("Folder name is required");
}
this.name = folder.name.encryptedString;
}
}