moleculerjs / moleculer-web

:earth_africa: Official API Gateway service for Moleculer framework
http://moleculer.services/docs/moleculer-web.html
MIT License
292 stars 118 forks source link

Can we get an official interface for ctx.meta.$ fields available in moleculer-web? #346

Open LordSyd opened 6 months ago

LordSyd commented 6 months ago

Hi,

it seems there is no "official" interface that describes all available ctx.meta fields in moleculer-web. Something similar to the interface available in main moleculer would be great:

interface ServiceSettingSchema {
  $noVersionPrefix?: boolean;
  $noServiceNamePrefix?: boolean;
  $dependencyTimeout?: number;
  $shutdownTimeout?: number;
  $secureSettings?: string[];
  [name: string]: any;
}

Of course I can write this myself for now, it would just be convenient to have something official for the off chance that something in this $-fields changes. :)