mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
13 lines
292 B
TypeScript
13 lines
292 B
TypeScript
interface Event<K extends number = number> {
|
|
id?: string;
|
|
sig?: string;
|
|
kind: K;
|
|
tags: string[][];
|
|
pubkey: string;
|
|
content: string;
|
|
created_at: number;
|
|
}
|
|
|
|
type SignedEvent<K extends number = number> = Event<K> & { id: string; sig: string };
|
|
|
|
export type { Event, SignedEvent };
|