Skip to content

Commit

Permalink
fix: set descriptor generic as covariant (out) on typedApi
Browse files Browse the repository at this point in the history
  • Loading branch information
voliva committed Jul 21, 2024
1 parent ff01d3c commit 35110c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

- `cli`: Commands `add`, `remove` and `update` run codegen by default after finishing [#577](https://github.com/polkadot-api/polkadot-api/pull/577).

### Fixed

- `typedApi` not being assignable to union of multiple chains.

## 0.11.2 - 2024-07-19

### Fixed
Expand Down
4 changes: 3 additions & 1 deletion packages/client/src/compatibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ import { Observable, combineLatest, filter, firstValueFrom, map } from "rxjs"
import { ChainDefinition } from "./descriptors"

export class CompatibilityToken<D = unknown> {
private constructor() {}

// @ts-ignore
private constructor(protected _descriptors: D) {}
protected _phantom(value: D) {}
}

interface CompatibilityTokenApi {
Expand Down

0 comments on commit 35110c9

Please sign in to comment.