Ende.BrowserWindowSerializableCheck
type alias ยท desktop apps only
type Ende.BrowserWindowSerializableCheck<F> = F extends (...args: any[]) => Promise<infer P> ? [P] extends [BrowserWindowSerializable<P>] ? unknown : "binding handler must resolve with a serializable value" : unknownIntersected with a handler's own type to reject non-serializable return
values at the call site of BrowserWindow.bind.
The check lives here, in parameter position, rather than as an
R extends BrowserWindowSerializable<R> type-parameter constraint,
because a type parameter constrained by a conditional type over itself
is circular (TS2313). Intersecting the string makes the mismatch print
the reason.