manekinekko / manekinekko/angular-web-bluetooth

Example does not work: MergeMap Errors

Open
#89 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
199
Forks
62
PR merge metrics
No merged PRs in 30d

Description

Example 2.b) generates the following error message when copied to the Angular project:

> Argument of type 'OperatorFunction' is not assignable to parameter of type 'OperatorFunction'.
> Type 'void | BluetoothRemoteGATTCharacteristic' is not assignable to type 'BluetoothRemoteGATTCharacteristic'.
> Type 'void' is not assignable to type 'BluetoothRemoteGATTCharacteristic'.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Example 2.b) and reproduce it in an Angular project using the reported TypeScript error. Trace the mergeMap example's inferred types and confirm that the corrected example compiles without the void-versus-BluetoothRemoteGATTCharacteristic error.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.