deep-foundation / deep-foundation/deeplinks

(await deep.select(...)).data[0] can be undefined, type is wrong

Open
#226 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
13
Forks
8
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

(await deep.select(...)).data[0] can be undefined, type is wrong

![image](https://github.com/deep-foundation/deeplinks/assets/66206278/b16fb266-a37d-4c6c-bd16-cd9c16e93304)

### Expected Behavior

Items must be of type `Link|undefined`, not just `Link`

### Current Behavior

Items are of type `Link`, not `Link|undefined`

### Steps to reproduce

_No response_

### Environment

_No response_

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.