Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 | 17x 17x 17x 17x 17x 17x | import { argRegistry } from './registry'; export { compileFieldArgs } from './compiler'; import { ArgOptions, defaultArgOptions } from './options'; export function Arg(options: ArgOptions = {}): ParameterDecorator { return (target: Object, fieldName: string, argIndex: number) => { argRegistry.set(target.constructor, [fieldName, argIndex], { ...defaultArgOptions, ...options, }); }; } |