Move the event parser and dedup functions to Rust (#206)
* feat: improve js parser * feat: move parser and dedup to rust * fix: parser * fix: get event function * feat: improve parser performance (#207) * feat: improve parser performance * feat: add test for video parsing * feat: finish new parser --------- Co-authored-by: XIAO YU <xyzmhx@gmail.com>
This commit is contained in:
10
packages/types/index.d.ts
vendored
10
packages/types/index.d.ts
vendored
@@ -28,6 +28,15 @@ export enum Kind {
|
||||
// #TODO: Add all nostr kinds
|
||||
}
|
||||
|
||||
export interface Meta {
|
||||
content: string;
|
||||
images: string[];
|
||||
videos: string[];
|
||||
events: string[];
|
||||
mentions: string[];
|
||||
hashtags: string[];
|
||||
}
|
||||
|
||||
export interface NostrEvent {
|
||||
id: string;
|
||||
pubkey: string;
|
||||
@@ -36,6 +45,7 @@ export interface NostrEvent {
|
||||
tags: string[][];
|
||||
content: string;
|
||||
sig: string;
|
||||
meta: Meta;
|
||||
}
|
||||
|
||||
export interface EventWithReplies extends NostrEvent {
|
||||
|
||||
Reference in New Issue
Block a user