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

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;