Update types
This commit is contained in:
parent
d5db788c31
commit
f64e459cd2
3 changed files with 11 additions and 9 deletions
|
@ -5,8 +5,7 @@ import { isDS4ItemDataTypePhysical } from "./item-data";
|
|||
/**
|
||||
* The Sheet class for DS4 Items
|
||||
*/
|
||||
// TODO(types): Remove first generic parameter once https://github.com/League-of-Foundry-Developers/foundry-vtt-types/pull/273 is merged
|
||||
export class DS4ItemSheet extends ItemSheet<unknown, DS4Item> {
|
||||
export class DS4ItemSheet extends ItemSheet<DS4Item> {
|
||||
/** @override */
|
||||
static get defaultOptions(): BaseEntitySheet.Options {
|
||||
const superDefaultOptions = super.defaultOptions;
|
||||
|
@ -42,7 +41,7 @@ export class DS4ItemSheet extends ItemSheet<unknown, DS4Item> {
|
|||
}
|
||||
|
||||
/** @override */
|
||||
getData(): ItemSheet.Data<DS4Item> {
|
||||
getData(): ItemSheet.Data<DS4Item> | Promise<ItemSheet.Data<DS4Item>> {
|
||||
const data = {
|
||||
...super.getData(),
|
||||
config: DS4,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue