import { SchemaService } from '@centsideas/schemas' ; export const RPC_METHODS = '__rpcMethods__' ; export const RpcMethod = ( schemaService ) => { return function MethodDecorator ( _target , methodName , descriptor ) { const metadata = Reflect . getMetadata ( RPC_METHODS , schemaService ) ; Reflect . defineMetadata ( RPC_METHODS , { ... metadata , [ methodName ] : descriptor . value } , schemaService ) ; } ; } ;