Skip to content

Instantly share code, notes, and snippets.

@Stronhold
Created February 10, 2019 13:17
Show Gist options
  • Save Stronhold/df60e5cb825c2f554f104546ca354f10 to your computer and use it in GitHub Desktop.
Save Stronhold/df60e5cb825c2f554f104546ca354f10 to your computer and use it in GitHub Desktop.
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