fix: use number instead of bigint for the generated TS for RequestId (#4575)
Before this PR: ```typescript export type RequestId = string | bigint; ``` After: ```typescript export type RequestId = string | number; ``` `bigint` introduces headaches in TypeScript without providing any real value.
This commit is contained in:
@@ -11,6 +11,7 @@ pub const JSONRPC_VERSION: &str = "2.0";
|
|||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
pub enum RequestId {
|
pub enum RequestId {
|
||||||
String(String),
|
String(String),
|
||||||
|
#[ts(type = "number")]
|
||||||
Integer(i64),
|
Integer(i64),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user