mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-07 23:19:14 +00:00
fix(types): type warm dialog payload without new any (#614)
Issue: #614 User-Visible: no
This commit is contained in:
@@ -3579,7 +3579,7 @@ export class HouseplanCard extends LitElement {
|
||||
* "open" as far as the user is concerned.
|
||||
*/
|
||||
private _warmDialogState(): WarmDialog | null {
|
||||
const at = (kind: WarmDialogKind, data: any): WarmDialog => ({
|
||||
const at = (kind: WarmDialogKind, data: WarmDialog['data']): WarmDialog => ({
|
||||
kind, space: this._space, mode: this._mode, data, baseline: warmDialogBaseline(this, kind),
|
||||
});
|
||||
if (this._tapConfirm || this._alignDialog || this._mergeDialog || this._importDialog
|
||||
|
||||
@@ -514,7 +514,7 @@ const expiredWarmViewport = (vp: WarmViewport | null): WarmViewport | null => {
|
||||
* the live draft OBJECT — the memo is module state, never serialised, so a
|
||||
* half-filled device dialog with its uploaded pdfs survives for free. */
|
||||
type WarmDialogKind = 'space' | 'marker' | 'settings' | 'opening' | 'decorText' | 'decorShape' | 'backdrop' | 'rules' | 'room' | 'info' | 'openingInfo';
|
||||
type WarmDialog = { kind: WarmDialogKind; space: string; mode: string; data: any; baseline?: string };
|
||||
type WarmDialog = { kind: WarmDialogKind; space: string; mode: string; data: unknown; baseline?: string };
|
||||
/** AUD-159B1-01: one entry per CARD PLACEMENT, not per key. Two cards with an
|
||||
* identical config on one view share the key, so the key alone cannot say
|
||||
* whose viewport this is; `place`/`idx` (the parent element the card was
|
||||
|
||||
Reference in New Issue
Block a user