microsoft / microsoft/TypeScript
Re-exporting namespace declarations in ES6 ambient declaration
オープン
まだ誰も着手していません。
In Discussion
Suggestion
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.3k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 117
説明
Right now many declaration files take this form:
declare namespace MyLib {
}
declare module 'myLib' {
export = MyLib;
}
However, there doesn't seem to be an equivalent for ES6 modules:
declare module 'myLib' {
export default MyLib; // this works for exporting the default, but other exported items in MyLib are not considered to be named exports of the ES6 module
export * from MyLib; // this is essentially what I'm trying to accomplish
}
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
この Issue ではファイルもテストも指定されていません。まず、TypeScript における ambient namespace declarations と ES6 module exports の扱いを調べ、次に MyLib に対して意図されている再エクスポートのセマンティクスを特定してください。名前空間のメンバーが、宣言された ES6 モジュールの named exports として認識され、その動作が適切なコンパイラテストによって検証されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, typescript
- 領域
- compilers
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 20/100