Created
February 10, 2019 13:17
-
-
Save Stronhold/df60e5cb825c2f554f104546ca354f10 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 { 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