electron/remote

typescript declaration

Closed this issue · 9 comments

taoqf commented

v1.0.2 still does not contains declaration.
#25

@taoqf that PR was released in 1.0.3, so that's the earliest version that will contain the published TS defs.

taoqf commented

... I could not see 1.0.3 https://www.npmjs.com/package/@electron/remote, or this is published in other name?

ah, looks like they haven't been published 🤔 i'll look into it.

1.0.4 is now published.

taoqf commented

...
But the types could not be used, cause they are not in correct path.

@taoqf would you mind opening a new issue and tagging @ffflorian, who wrote the PR?

taoqf commented

I gaved up and changed to ipc.

@taoqf

But the types could not be used, cause they are not in correct path.

What's the problem with the types? What do you mean by "they are not in the correct path"?
As far as I can see, the types are there: https://unpkg.com/browse/@electron/remote@1.0.4/dist/src/main/

I noticed there is indeed an untyped file which might lead to confusion. I created a PR.