ionic-team / ionic-team/ionic-storage

Better support for types

Open
#180 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
456
Forks
97
PR merge metrics
No merged PRs in 30d

Description

Hello all, I hope you'll entertain an enhancement request. I'm enjoying the library so far but I'm wondering if we can get better type accuracy. One specific example would be:

```ts
get(key: string): Promise;
```

`Promise` could be clarified with `X | Y | null`, allowing for null checking, as that may often return null.

Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.