egoist / egoist/tinyargs

Better TypeScript support

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
TypeScript
Stars
76
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Currently the return object is typed as `Record`, ideally it should infer types based on options:

```ts
parse([], [{ name:'foo', type: Boolean }, { name: 'bar', type: String, optionalValue: true }])

//=> { foo?: boolean, bar?: string | true }
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.