-
Notifications
You must be signed in to change notification settings - Fork 10
Conversation
@@ -7,7 +7,7 @@ import { rpcCall } from "./rpcCall.ts"; | |||
|
|||
export const metadata = effector( | |||
"metadata", | |||
(rpc: EffectorItem<rpc.AnyClient>, blockHash?: EffectorItem<U.HashHexString>) => { | |||
(rpc: EffectorItem<any>, blockHash?: EffectorItem<U.HashHexString>) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Effects are in need of a refactor, given the way that RPC types flow through the beacon into any/all calls. This any
-ifying is temporary
@@ -1,15 +1,3 @@ | |||
import { Branded } from "../util/mod.ts"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Proper branded types are still a todo.
@@ -18,10 +18,10 @@ export type Subscription<NotificationResult = any> = { [_N]: NotificationResult | |||
|
|||
export interface ClientProps< | |||
M extends AnyMethods, | |||
Beacon, | |||
DiscoveryValue, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zeroing in on correct terminology. Beacons contain discovery values (such as URLs and chain specs). Beacons are encoded with the type information necessary to constrain client usage.
@@ -18,10 +18,10 @@ export type Subscription<NotificationResult = any> = { [_N]: NotificationResult | |||
|
|||
export interface ClientProps< | |||
M extends AnyMethods, | |||
Beacon, | |||
DiscoveryValue, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zeroing in on correct terminology. Beacons contain discovery values (such as URLs and chain specs). Beacons are encoded with the type information necessary to constrain client usage.
No description provided.