Created
April 9, 2021 21:02
-
-
Save beaucollins/0ee0437158a425a3e07cbd77b5bd54fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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