bigint string compatibilty

This commit is contained in:
2023-08-15 15:14:16 -04:00
parent 2d080c6aae
commit fd2ce375e4
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "discreetly-interfaces",
"version": "0.1.29",
"version": "0.1.30",
"description": "Common interfaces and utilities for discreetly",
"author": "AtHeartEngineer",
"homepage": "https://github.com/Discreetly",

View File

@@ -14,7 +14,7 @@ export interface RLNContractI {
export interface MessageI {
id?: string; // database ID
messageId?: string; // internal nullifier as string
roomId?: RLNFullProof['rlnIdentifier'];
roomId?: RLNFullProof['rlnIdentifier'] | string;
message: string;
proof?: RLNFullProof;
epoch?: number | bigint;
@@ -24,7 +24,7 @@ export interface MessageI {
export interface SystemMessageI {
timestamp: string; // unix epoch time in ms as string
message: string; // plain text message
room?: RLNFullProof['rlnIdentifier']; // optionally send it to one room or all rooms
room?: RLNFullProof['rlnIdentifier'] | string; // optionally send it to one room or all rooms
}
export interface RoomI {
@@ -45,7 +45,7 @@ export interface RoomI {
}
export interface ServerI {
id: bigint;
id: bigint | string;
name: string;
version?: string;
serverInfoEndpoint?: string;