microsoft / microsoft/TypeScript
Consider .node files as module
オープン
まだ誰も着手していません。
Awaiting More Feedback
Suggestion
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.4k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 117
説明
Search Terms
native module, node js native module, .node files
Suggestion
Here is the snippet that load the module:
import Aboukara from "../../AboukaraLib";
const combo_regex = /\w+@\w+\.[a-zA-Z]+:.+/gm;
Currently when I import a .node file the compiler throw me this error:
[6:13:25 PM] File change detected. Starting incremental compilation...
src/utils/findCombo.ts:1:22 - error TS2307: Cannot find module '../../AboukaraLib' or its corresponding type declarations.
1 import Aboukara from "../../AboukaraLib";
~~~~~~~~~~~~~~~~~~~
[6:13:25 PM] Found 1 error. Watching for file changes.
If the compiler would be able to understand it it would make it useful for people who use native module.
Use Cases
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
実装ファイル、テスト、エントリポイントのいずれも指定されていないため、まず issue に示された import のモジュール解決を追跡し、ネイティブモジュールの拡張子に関する既存のテストを確認してください。完了の条件は、コンパイラーが報告された TS2307 エラーなしで .node ファイルの import を受け入れ、その動作が適切なテストでカバーされていることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- node.js, typescript
- 領域
- compilers
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100