fix(types): type warm dialog payload without new any (#614)

Issue: #614
User-Visible: no
This commit is contained in:
Claude
2026-09-23 15:46:55 +03:00
parent 1a6b12af86
commit bc6b243f56
44 changed files with 346 additions and 346 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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