Files
rabbit/src/nostr/event.ts
Shusui MOYATANI 52f7573475 fix: eslint errors
2023-11-23 00:54:04 +09:00

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);