File size: 488 Bytes
cfbbc1a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.assignCustomParameterMetadata = assignCustomParameterMetadata;
const constants_1 = require("../constants");
function assignCustomParameterMetadata(args, paramtype, index, factory, data, ...pipes) {
    return {
        ...args,
        [`${paramtype}${constants_1.CUSTOM_ROUTE_ARGS_METADATA}:${index}`]: {
            index,
            factory,
            data,
            pipes,
        },
    };
}