UNPKG

fvtt-types

Version:
52 lines (43 loc) 1.59 kB
import type { Identity } from "#utils"; import type DocumentSheetV2 from "../api/document-sheet.d.mts"; import type HandlebarsApplicationMixin from "../api/handlebars-application.d.mts"; declare module "#configuration" { namespace Hooks { interface ApplicationV2Config { CardConfig: CardConfig.Any; } } } /** * A DocumentSheet application responsible for displaying and editing a single embedded Card document. * @remarks TODO: Stub */ declare class CardConfig< RenderContext extends CardConfig.RenderContext = CardConfig.RenderContext, Configuration extends CardConfig.Configuration = CardConfig.Configuration, RenderOptions extends CardConfig.RenderOptions = CardConfig.RenderOptions, > extends HandlebarsApplicationMixin(DocumentSheetV2)< Card.Implementation, RenderContext, Configuration, RenderOptions > {} declare namespace CardConfig { interface Any extends AnyCardConfig {} interface AnyConstructor extends Identity<typeof AnyCardConfig> {} interface RenderContext extends HandlebarsApplicationMixin.RenderContext, DocumentSheetV2.RenderContext<Card.Implementation> {} interface Configuration extends HandlebarsApplicationMixin.Configuration, DocumentSheetV2.Configuration<Card.Implementation> {} interface RenderOptions extends HandlebarsApplicationMixin.RenderOptions, DocumentSheetV2.RenderOptions {} } declare abstract class AnyCardConfig extends CardConfig< CardConfig.RenderContext, CardConfig.Configuration, CardConfig.RenderOptions > { constructor(...args: never); } export default CardConfig;