1 | import { type ParameterDecorator, type ResolverData } from "../typings/index.js";
|
2 | import { type ArgOptions } from "./Arg.js";
|
3 | import { type ReturnTypeFunc } from "./types.js";
|
4 | export interface CustomParameterOptions {
|
5 | arg?: {
|
6 | name: string;
|
7 | typeFunc: ReturnTypeFunc;
|
8 | options?: ArgOptions;
|
9 | };
|
10 | }
|
11 | export type ParameterResolver<TContextType extends object = object> = (resolverData: ResolverData<TContextType>) => any;
|
12 | export declare function createParameterDecorator<TContextType extends object = object>(resolver: ParameterResolver<TContextType>, paramOptions?: CustomParameterOptions): ParameterDecorator;
|