import { MetadataStorage } from '../metadata' ; import type { Dictionary , FilterDef } from '../typings' ; export function Filter < T > ( options ) { return function < U > ( target ) { const meta = MetadataStorage . getMetadataFromDecorator ( target ) ; meta . filters [ options . name ] = options as unknown as FilterDef < U > ; return target ; } ; }