adopted-ember-addons / adopted-ember-addons/ember-electron

Provide type information for `requireNode`

Đang mở
#380 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
802
Fork
106
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I'm using TypeScript and was seeing this warning / error:

> TS2304: Cannot find name 'requireNode'.

I can make it go away by adding this line, but I know there must be a more automatic way to provide type information from the package itself (or at least from a `@types/...` package):

`declare var requireNode: (name:string) => any;`

Could we include support for that somehow?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.