diff --git a/src/foundry/client/apps/forms/index.d.ts b/src/foundry/client/apps/forms/index.d.ts index 975c65b1e..d87e834de 100644 --- a/src/foundry/client/apps/forms/index.d.ts +++ b/src/foundry/client/apps/forms/index.d.ts @@ -11,7 +11,7 @@ import "./item"; import "./journal-sheet"; import "./macro-config"; import "./measure-template"; -import "./permission"; +import "./ownership"; import "./playlist-config"; import "./playlist-sound-config"; import "./roll-table-config"; diff --git a/src/foundry/client/apps/forms/permission.d.ts b/src/foundry/client/apps/forms/ownership.d.ts similarity index 77% rename from src/foundry/client/apps/forms/permission.d.ts rename to src/foundry/client/apps/forms/ownership.d.ts index 74dcd9ad4..bba49ddf4 100644 --- a/src/foundry/client/apps/forms/permission.d.ts +++ b/src/foundry/client/apps/forms/ownership.d.ts @@ -5,7 +5,7 @@ declare global { * @typeParam Options - the type of the options object * @typeParam ConcreteDocument - the type of the Document which should be managed by this form sheet */ - class PermissionControl< + class DocumentOwnershipConfig< Options extends DocumentSheetOptions, ConcreteDocument extends foundry.abstract.Document = foundry.abstract.Document, > extends DocumentSheet { @@ -14,7 +14,7 @@ declare global { * ```typescript * foundry.utils.mergeObject(super.defaultOptions, { * id: "permission", - * template: "templates/apps/permission.html", + * template: "templates/apps/ownership.html", * width: 400 * }) * ``` @@ -25,10 +25,15 @@ declare global { override getData(options?: Partial | undefined): MaybePromise; - protected override _updateObject(event: Event, formData: PermissionControl.FormData): Promise; + protected override _updateObject(event: Event, formData: DocumentOwnershipConfig.FormData): Promise; } - namespace PermissionControl { + /** + * @deprecated since v10. + */ + class PermissionControl extends DocumentOwnershipConfig {} + + namespace DocumentOwnershipConfig { interface FormData { [userId: string]: FormData.InputPermissionLevel; default: FormData.InputPermissionLevel;