Wrong TypeScript definitions
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- tooling
Research direction
Start with DefinitelyTyped PR 53304 and the @types/jsonlines definitions, then compare the data event's emitted value with this project's implementation. Done means the external TypeScript declaration accurately represents every valid JSON value emitted by data; this issue does not identify a file or test in this repository.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- JavaScript
- Stars
- 25
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from LinusU/node-jsonlines
-
enhancement help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
LinusU/node-jsonlines#6 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
LinusU/node-jsonlines#5 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
LinusU/node-jsonlines#2 · 1 comment ·
All issues in LinusU/node-jsonlines
Similar issues
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
githubnext/gh-aw-workshop#3692 ·
-
agent/guide documentation hive/hosted-available-lke648397-260827-5n31
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Add: BuyPass TV Openchannels:add check:passed
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
S: triage
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·