arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io

Can it fail if no types are found?

Open
#182 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.6k
Forks
65
PR merge metrics
No merged PRs in 30d

Description

As a library author I very much like `attw` as it allows me to check if my "main" entry point is correct. However, I noticed that the `attw` CLI doesn't fail if no types are found at all. It simply states:

```bash
{
"packageName": "trading212-api",
"packageVersion": "1.0.2",
"types": false
}
```

Is there the possibility to make `attw` fail also when there are no types at all?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the attw CLI result shown for trading212-api, where the JSON reports "types": false. Trace where this result is converted into the CLI outcome and check how other failure cases are handled. Done means the CLI fails when no types are found while preserving the reported result.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.