Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type Transform<T = any> = (value: T, metadata: ArgumentMetadata) => any;
*
* @publicApi
*/
export interface ArgumentMetadata {
export interface ArgumentMetadata<MetaType = any> {
/**
* Indicates whether argument is a body, query, param, or custom parameter
*/
Expand All @@ -19,7 +19,7 @@ export interface ArgumentMetadata {
* Underlying base type (e.g., `String`) of the parameter, based on the type
* definition in the route handler.
*/
readonly metatype?: Type<any> | undefined;
readonly metatype?: Type<MetaType> | undefined;
/**
* String passed as an argument to the decorator.
* Example: `@Body('userId')` would yield `userId`
Expand Down
Loading