mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-18 22:44:26 +01:00
12 lines
450 B
TypeScript
12 lines
450 B
TypeScript
import { Event as NostrEvent } from 'nostr-tools';
|
|
|
|
import GenericEvent from '@/nostr/event/GenericEvent';
|
|
import Reaction from '@/nostr/event/Reaction';
|
|
import TextNote from '@/nostr/event/TextNote';
|
|
|
|
export const genericEvent = (event: NostrEvent): GenericEvent => new GenericEvent(event);
|
|
|
|
export const textNote = (event: NostrEvent): TextNote => new TextNote(event);
|
|
|
|
export const reaction = (event: NostrEvent): Reaction => new Reaction(event);
|