message: Update FolderConfig to 0.8.9
diff: -// TODO: Remove this when updating this to 0.8.x!!!
  -// eslint-disable-next-line
  -// @ts-nocheck
  +import type { ConfiguredDocumentClass } from '../../../../types/helperTypes';
  +import type { SortingModes } from '../../../common/data/data.mjs/folderData';
  +declare global {
  /**
  - * Edit a folder, configuring its name and appearance
  + * The Application responsible for configuring a single Folder document.
  */
  -declare class FolderConfig extends FormApplication<FormApplication.Options, FolderConfig.Data, Folder> {
  + class FolderConfig extends DocumentSheet<
  + DocumentSheet.Options,
  + FolderConfig.Data,
  + InstanceType<ConfiguredDocumentClass<typeof Folder>>
  + > {
  /**
  * @override
  * @defaultValue
  * ```typescript
  - * mergeObject(super.defaultOptions, {
  + * foundry.utils.mergeObject(super.defaultOptions, {
  * classes: ["sheet", "folder-edit"],
  * template: "templates/sidebar/folder-edit.html",
  * width: 360
  - * });
  + * })
  * ```
  */
  - static get defaultOptions(): typeof FormApplication['defaultOptions'];
  + static get defaultOptions(): typeof DocumentSheet['defaultOptions'];
  - /**
  - * @override
  - */
  + /** @override */
  get id(): string;
  - /**
  - * @override
  - */
  + /** @override */
  get title(): string;
  /**
  @@ -38,13 +38,20 @@ declare class FolderConfig extends FormApplication<FormApplication.Options, Fold
  /**
  * @param event - (unused)
  * @override
  + * @internal
  */
  - protected _updateObject(event: Event, formData: FolderConfig.FormData): ReturnType<Folder['update']>;
  + protected _updateObject(
  + event: Event,
  + formData: FolderConfig.FormData
  + ): Promise<InstanceType<ConfiguredDocumentClass<typeof Folder>> | undefined>;
  }
  -declare namespace FolderConfig {
  + namespace FolderConfig {
  interface Data {
  - folder: Folder.Data;
  + name: string;
  + newName: string;
  + folder: foundry.data.FolderData;
  + safeColor: string;
  sortingModes: {
  a: 'FOLDER.SortAlphabetical';
  m: 'FOLDER.SortManual';
  @@ -52,5 +59,12 @@ declare namespace FolderConfig {
  submitText: string;
  }
  - type FormData = Pick<Folder.Data, 'color' | 'name' | 'sorting' | 'type'> & { parent: string };
  + interface FormData {
  + color: string;
  + name: string;
  + parent: string;
  + sorting: SortingModes;
  + type: foundry.CONST.FolderEntityTypes;
  + }
  + }
  }
  