UNPKG

@electron/remote

Version:

[![Test](https://github.com/electron/remote/actions/workflows/test.yml/badge.svg)](https://github.com/electron/remote/actions/workflows/test.yml) [![npm version](http://img.shields.io/npm/v/@electron/remote.svg)](https://npmjs.org/package/@electron/remote

7 lines (6 loc) 377 B
import { BrowserWindow, WebContents } from 'electron'; export declare function getBuiltin(module: string): any; export declare function getCurrentWindow(): BrowserWindow; export declare function getCurrentWebContents(): WebContents; export declare function getGlobal<T = any>(name: string): T; export declare function createFunctionWithReturnValue<T>(returnValue: T): () => T;