ext(affordances): tighten FillFromTabOpts.sendMessage return type
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user