Skip to content

Instantly share code, notes, and snippets.

@beaucollins
Created April 9, 2021 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beaucollins/0ee0437158a425a3e07cbd77b5bd54fc to your computer and use it in GitHub Desktop.
Save beaucollins/0ee0437158a425a3e07cbd77b5bd54fc to your computer and use it in GitHub Desktop.
import { Field, InterfaceType } from 'type-graphql';
import { EventObject } from '../../../core/entities';
import { MessageFormat } from '../../../core/entities/TimelineEntry';
import { FormattedMessage } from '../community/MemberTimelineMessageTypes';
@InterfaceType({
description: 'Provides a MessageFormat compatible message',
})
export abstract class HasFormattedEventMessage {
public readonly eventObject!: EventObject;
@Field(() => FormattedMessage)
public formattedMessage(): MessageFormat {
throw new Error('WIP');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment