UNPKG

@electron/remote

Version:

[![CircleCI build status](https://circleci.com/gh/electron/remote/tree/main.svg?style=shield)](https://circleci.com/gh/electron/remote/tree/main) [![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;