electron/remote

Could not find a declaration file for module `@electron/remote/main`

cawa-93 opened this issue · 2 comments

I just install @electron/remote@1.1.0.

// main.ts
import {initialize} from '@electron/remote/main'; // TS7016: Could not find a declaration file for module '@electron/remote/main'.

initialize();

As ugly workaround I must use

import {initialize} from '@electron/remote/dist/src/main';

Something goofy with the types, for sure.

I notice the types export initialize for @electron/remote which is misleading if the documentation says to import from @electron/remote/main.
import {initialize} from '@electron/remote', but doesn't actually work.

I believe this PR will also fix #60