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

17 lines (16 loc) 549 B
import { WebContents } from 'electron'; declare class ObjectsRegistry { private nextId; private storage; private owners; private electronIds; add(webContents: WebContents, contextId: string, obj: any): number; get(id: number): any; remove(webContents: WebContents, contextId: string, id: number): void; clear(webContents: WebContents, contextId: string): void; private saveToStorage; private dereference; private registerDeleteListener; } declare const _default: ObjectsRegistry; export default _default;