Commit 2f4c542
committed
refactor(Collector): add typed
Adds a public `get connection (): pryv.Connection` getter that returns
`this.appManaging.connection`, so consumers can drop the
`(collector as unknown as { appManaging: { connection: any } }).appManaging.connection`
casts that were spreading across PatientsTable / PatientsPage / EmbedInvite.
The underlying `appManaging: any` field stays as-is — typing it strictly
as AppManagingAccount surfaces a ripple of pre-existing bad annotations
in Collector's own `connection.api(...)` calls, and the class is queued
for deletion in plan 61 Phase C. The getter is enough to unblock the
consumer-side cleanup today.connection getter (plan 61 B3)1 parent 812ca92 commit 2f4c542
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
33 | 45 | | |
34 | 46 | | |
35 | 47 | | |
| |||
0 commit comments