1 | import type { ArrayFlag, NumberFlag, StringFlag, BooleanFlag } from '../types.js';
|
2 |
|
3 |
|
4 |
|
5 | export declare const flags: {
|
6 | |
7 |
|
8 |
|
9 | string<Type = string>(options?: Partial<Omit<StringFlag<Type>, "type">>): <Key extends string, Target extends { [K in Key]?: Type; }>(target: Target, propertyName: Key) => void;
|
10 | |
11 |
|
12 |
|
13 | boolean<Type = boolean>(options?: Partial<Omit<BooleanFlag<Type>, "type">>): <Key extends string, Target extends { [K in Key]?: Type; }>(target: Target, propertyName: Key) => void;
|
14 | |
15 |
|
16 |
|
17 | number<Type = number>(options?: Partial<Omit<NumberFlag<Type>, "type">>): <Key extends string, Target extends { [K in Key]?: Type; }>(target: Target, propertyName: Key) => void;
|
18 | |
19 |
|
20 |
|
21 | array<Type extends any[] = string[]>(options?: Partial<Omit<ArrayFlag<Type>, "type">>): <Key extends string, Target extends { [K in Key]?: Type; }>(target: Target, propertyName: Key) => void;
|
22 | };
|