Skip to content

Commit 35110c9

Browse files
committed
fix: set descriptor generic as covariant (out) on typedApi
Closes #580 microsoft/TypeScript#10717
1 parent ff01d3c commit 35110c9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/client/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

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

9+
### Fixed
10+
11+
- `typedApi` not being assignable to union of multiple chains.
12+
913
## 0.11.2 - 2024-07-19
1014

1115
### Fixed

packages/client/src/compatibility.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ import { Observable, combineLatest, filter, firstValueFrom, map } from "rxjs"
2020
import { ChainDefinition } from "./descriptors"
2121

2222
export class CompatibilityToken<D = unknown> {
23+
private constructor() {}
24+
2325
// @ts-ignore
24-
private constructor(protected _descriptors: D) {}
26+
protected _phantom(value: D) {}
2527
}
2628

2729
interface CompatibilityTokenApi {

0 commit comments

Comments
 (0)