mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-10-02 04:43:13 +03:00
feat(): wip
This commit is contained in:
@@ -48,39 +48,3 @@ export const addPipesMetadata = (
|
||||
key,
|
||||
);
|
||||
};
|
||||
|
||||
// export function createTelegrafParamDecorator(
|
||||
// paramtype: TelegrafParamtype,
|
||||
// ): (...pipes: (Type<PipeTransform> | PipeTransform)[]) => ParameterDecorator {
|
||||
// return (...pipes: (Type<PipeTransform> | PipeTransform)[]) => (
|
||||
// target,
|
||||
// key,
|
||||
// index,
|
||||
// ) => {
|
||||
// const args =
|
||||
// Reflect.getMetadata(LISTENER_ARGS_METADATA, target.constructor, key) ||
|
||||
// {};
|
||||
// Reflect.defineMetadata(
|
||||
// LISTENER_ARGS_METADATA,
|
||||
// assignMetadata(args, paramtype, index, undefined, ...pipes),
|
||||
// target.constructor,
|
||||
// key,
|
||||
// );
|
||||
// };
|
||||
// }
|
||||
//
|
||||
// export const createPipesTelegrafParamDecorator = (
|
||||
// paramtype: TelegrafParamtype,
|
||||
// ) => (
|
||||
// ...pipes: (Type<PipeTransform> | PipeTransform)[]
|
||||
// ): ParameterDecorator => (target, key, index) => {
|
||||
// const args =
|
||||
// Reflect.getMetadata(LISTENER_ARGS_METADATA, target.constructor, key) || {};
|
||||
//
|
||||
// Reflect.defineMetadata(
|
||||
// LISTENER_ARGS_METADATA,
|
||||
// assignMetadata(args, paramtype, index, undefined, ...pipes),
|
||||
// target.constructor,
|
||||
// key,
|
||||
// );
|
||||
// };
|
||||
|
Reference in New Issue
Block a user