import { GetParamOptions } from './'; /** * Base interface for decorators injecting multiple params. */ export interface GetMultipleParamsOptions extends GetParamOptions { /** * Explicitly define which params should be injected to the variable. * @example @GetHeaders({ explicitly: [ 'Content-Type', 'Authorization' ]}) private headers: string[]; * This will only inject the value of content-type and authorization headers into the 'headers' variable. */ explicitly?: string[]; /** * Define which params should be ignored while injecting to the variable. * @example @GetHeaders({ [ 'X-Powered-By' ] }) private headers: string[]; * This will inject all headers but the x-powered-by into the 'headers' variable. * NOTE: if ignored and explicitly set params overlap, 'ignore' overrides 'explicitly'. */ ignore?: string[]; }