import { ArgsOptions , ReturnTypeFunc } from '@nestjs/graphql' ; import { MetadataStorage } from '../common' ; export type InputArgOptions = Omit < ArgsOptions , 'name' | 'nullable' | 'type' | 'defaultValue' > ; export function InputArg < T > ( typeFunc , options ? ) { return ( target , key , paramIndex ) => { MetadataStorage . addMethodMetadata ( { ... options , typeFunc , target , key , paramIndex , } ) ; } ; }