getRendererElectronApi
FitFileViewer - API Documentation v30.0.1
FitFileViewer - API Documentation / utils/runtime/electronApiRuntime / getRendererElectronApi
Function: getRendererElectronApi()
getRendererElectronApi<
T>(isExpectedApi: (value:unknown) =>value is T,scope?:RendererElectronApiScope):T|null
Defined in: utils/runtime/electronApiRuntime.ts:18
Resolves the preload-exposed Electron API through a single typed boundary.
Type Parametersβ
Tβ
T extends object = object
Parametersβ
isExpectedApiβ
(value: unknown) => value is T
scope?β
Returnsβ
T | null