Update types
This commit is contained in:
parent
ff3c09f009
commit
746d4d7a44
3 changed files with 8 additions and 8 deletions
|
@ -5,7 +5,7 @@ import { isDS4ItemDataTypePhysical } from "./item-data";
|
|||
/**
|
||||
* The Sheet class for DS4 Items
|
||||
*/
|
||||
export class DS4ItemSheet extends ItemSheet<DS4Item> {
|
||||
export class DS4ItemSheet extends ItemSheet<ItemSheet.Data<DS4Item>> {
|
||||
/** @override */
|
||||
static get defaultOptions(): BaseEntitySheet.Options {
|
||||
const superDefaultOptions = super.defaultOptions;
|
||||
|
@ -41,9 +41,9 @@ export class DS4ItemSheet extends ItemSheet<DS4Item> {
|
|||
}
|
||||
|
||||
/** @override */
|
||||
getData(): ItemSheet.Data<DS4Item> | Promise<ItemSheet.Data<DS4Item>> {
|
||||
async getData(): Promise<ItemSheet.Data<DS4Item>> {
|
||||
const data = {
|
||||
...super.getData(),
|
||||
...(await super.getData()),
|
||||
config: DS4,
|
||||
isOwned: this.item.isOwned,
|
||||
actor: this.item.actor,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue