Skip to content

fix: narrow return type for useSingleDocByDocId#186

Merged
achou11 merged 1 commit into
mainfrom
ac/use-single-doc-by-doc-id-return-type-fix
Jun 22, 2026
Merged

fix: narrow return type for useSingleDocByDocId#186
achou11 merged 1 commit into
mainfrom
ac/use-single-doc-by-doc-id-return-type-fix

Conversation

@achou11

@achou11 achou11 commented Jun 22, 2026

Copy link
Copy Markdown
Member

Fixes #185

Kind of a quick and dirty solution. Ideally we'd put more thought into how we define return types, in addition to adding some types testing. Will consider those for follow up.

@achou11 achou11 merged commit 84b12be into main Jun 22, 2026
8 checks passed
@achou11 achou11 deleted the ac/use-single-doc-by-doc-id-return-type-fix branch June 22, 2026 17:28
achou11 pushed a commit that referenced this pull request Jun 22, 2026
## Optic Release Automation

This **draft** PR is opened by Github action
[optic-release-automation-action](https://github.com/nearform-actions/optic-release-automation-action).

A new **draft** GitHub release
[v11.0.7](https://github.com/digidem/comapeo-core-react/releases/tag/untagged-f41c453fb12fb06dfd82)
has been created.

Release author: @achou11

#### If you want to go ahead with the release, please merge this PR.
When you merge:

- The GitHub release will be published

- The npm package with tag latest will be published according to the
publishing rules you have configured



- No major or minor tags will be updated as configured


#### If you close the PR

- The new draft release will be deleted and nothing will change

## What's Changed
* fix: narrow return type for useSingleDocByDocId by @achou11 in
#186
* chore: update actions and deps by @achou11 in
#187
* chore: minor CI cleanup by @achou11 in
#189


**Full Changelog**:
v11.0.6...v11.0.7

<!--

<release-meta>{"id":343091854,"version":"v11.0.7","npmTag":"latest","opticUrl":"https://optic-zf3votdk5a-ew.a.run.app/api/generate/"}</release-meta>
-->

Co-authored-by: achou11 <actions@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Return type regression for useSingleDocByDocId() when using @comapeo/core@7.3.0

1 participant