ext(affordances): tighten FillFromTabOpts.sendMessage return type

This commit is contained in:
adlee-was-taken
2026-05-01 17:54:57 -04:00
parent 4be0bcff83
commit 8eff96da9d

View File

@@ -1,7 +1,7 @@
import { GLYPH_FILL_FROM_TAB } from '../glyphs'; import { GLYPH_FILL_FROM_TAB } from '../glyphs';
export interface FillFromTabOpts { export interface FillFromTabOpts {
sendMessage: (msg: { type: 'get_active_tab_url' }) => Promise<{ ok: boolean; data?: { url: string; title: string } | null }>; sendMessage: (msg: { type: 'get_active_tab_url' }) => Promise<{ ok: boolean; data: { url: string; title: string } | null }>;
} }
export function wireFillFromTab(form: HTMLElement, opts: FillFromTabOpts): void { export function wireFillFromTab(form: HTMLElement, opts: FillFromTabOpts): void {