message: Update PermissionControl for v9
  Closes
diff: @@ -2,27 +2,27 @@ import type { ConfiguredDocumentClassForName } from '../../../../../types/helper
  declare global {
  /**
  - * A generic application for configuring permissions for various Entity types
  + * A generic application for configuring permissions for various Document types
  * @typeParam Options - the type of the options object
  * @typeParam Data - The data structure used to render the handlebars template.
  * @typeParam ConcreteDocument - the type of the Document which should be managed by this form sheet
  */
  class PermissionControl<
  Options extends DocumentSheetOptions = DocumentSheetOptions,
  - Data extends object = DocumentSheet.Data,
  + Data extends object = PermissionControl.Data,
  ConcreteDocument extends foundry.abstract.Document<any, any> = Data extends DocumentSheet.Data<infer T>
  ? T
  : foundry.abstract.Document<any, any>
  - > extends DocumentSheet<Options, PermissionControl.Data<ConcreteDocument>, ConcreteDocument> {
  + > extends DocumentSheet<Options, PermissionControl.Data, ConcreteDocument> {
  /**
  * @override
  * @defaultValue
  * ```typescript
  - * mergeObject(super.defaultOptions, {
  + * foundry.utils.mergeObject(super.defaultOptions, {
  * id: "permission",
  * template: "templates/apps/permission.html",
  * width: 400
  - * });
  + * })
  * ```
  */
  static get defaultOptions(): DocumentSheetOptions;
  @@ -30,19 +30,15 @@ declare global {
  /** @override */
  get title(): string;
  - /**
  - * @override
  - * @param options - (unused)
  - */
  - getData(options?: Partial<Options>): PermissionControl.Data<ConcreteDocument>;
  + /** @override */
  + getData(options?: Partial<Options> | undefined): PermissionControl.Data | Promise<PermissionControl.Data>;
  /** @override */
  protected _updateObject(event: Event, formData: PermissionControl.FormData): Promise<unknown>;
  }
  namespace PermissionControl {
  - interface Data<ConcreteDocument extends foundry.abstract.Document<any, any>> extends DocumentSheet.Data {
  - entity: ConcreteDocument;
  + interface Data {
  currentDefault: foundry.CONST.DOCUMENT_PERMISSION_LEVELS | '-1';
  instructions: string;
  defaultLevels: Record<foundry.CONST.DOCUMENT_PERMISSION_LEVELS, string> & { '-1'?: string };
  