UNPKG

751 BTypeScriptView Raw
1import type { SpreadArgument, StringArgument } from '../types.js';
2/**
3 * Namespace for defining arguments using decorators.
4 */
5export declare const args: {
6 /**
7 * Define argument that accepts a string value
8 */
9 string<Type = string>(options?: Partial<Omit<StringArgument<Type>, "type">> | undefined): <Key extends string, Target extends { [K in Key]?: Type | undefined; }>(target: Target, propertyName: Key) => void;
10 /**
11 * Define argument that accepts a spread value
12 */
13 spread<Type_1 extends unknown = string[]>(options?: Partial<Omit<SpreadArgument<Type_1>, "type">> | undefined): <Key_1 extends string, Target_1 extends { [K_1 in Key_1]?: Type_1 | undefined; }>(target: Target_1, propertyName: Key_1) => void;
14};