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:
Michael Bolin
2025-10-01 12:10:20 -07:00
committed by GitHub
parent ceaba36c7f
commit eabe18714f

View File

@@ -11,6 +11,7 @@ pub const JSONRPC_VERSION: &str = "2.0";
#[serde(untagged)]
pub enum RequestId {
String(String),
#[ts(type = "number")]
Integer(i64),
}