import { BaseRouteName } from '../types/base-route-name.type' ; import { OVERRIDE_METHOD_METADATA } from '../constants' ; export const Override = ( name ? ) => ( target , key , descriptor ) => { Reflect . defineMetadata ( OVERRIDE_METHOD_METADATA , name || `${ key }Base` , target [ key ] ) ; return descriptor ; } ;