import { Class } from '../utils/Class' ; internal export class Subscription < T > { public constructor ( public readonly messageType , public readonly handler ) { } public equals ( messageType , handler ? ) { return this . messageType === messageType && ( handler === undefined || this . handler === handler ) ; } }