Skip to content

Instantly share code, notes, and snippets.

Created February 10, 2019 13:17
What would you like to do?
import { RegistryService } from './registry.service';
import { MessageTypeEnum } from '../model/message-type.enum';
export function Registry(id: MessageTypeEnum): Function {
return function decorator(target): void {
RegistryService.getRegistry().register(id, target);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment