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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user