Wrong TypeScript definitions

オープン
#4 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript
領域
tooling

調査の方向性

DefinitelyTyped PR 53304 と @types/jsonlines の定義から始め、その後、data イベントが発行する値をこのプロジェクトの実装と比較します。完了条件は、外部の TypeScript 宣言が data から発行されるすべての有効な JSON 値を正確に表現することです。この issue では、このリポジトリ内のファイルやテストは特定されていません。

索引モデルが issue の本文から書いたものです。

説明

I know TypeScript definitions aren't part of this package, but I thought I'd bring attention to the fact that someone wrote TypeScript definitions for this package in @types/jsonlines (here), and they're not accurate.

Specifically, the data event was defined as emitting an interface called Lines, which is defined as:

export interface Line {
    data: string;
    type: string;
}

Which is pretty strange to me, because I've read the code in this project, and there is no such data structure ever defined. If I'm correct, the data event just emits any valid JSON value.

Mentioning @raineorshine, as they are the author of those TypeScript Definitions.

主要言語
JavaScript
スター
25
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

LinusU/node-jsonlines のほかの issue

LinusU/node-jsonlines の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。