@nestjs/common/interfaces#CustomParamFactory TypeScript Examples
The following examples show how to use
@nestjs/common/interfaces#CustomParamFactory.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: decorator.spec.ts From nestjs-paginate with MIT License | 6 votes |
// eslint-disable-next-line @typescript-eslint/ban-types
function getParamDecoratorFactory<T>(decorator: Function): CustomParamFactory {
class Test {
public test(@decorator() _value: T): void {
//
}
}
const args = Reflect.getMetadata(ROUTE_ARGS_METADATA, Test, 'test')
return args[Object.keys(args)[0]].factory
}