* Apply one or more template functions to set up the binding with scope, * tags, and other attributes as a group. * * @example * ```ts * const serverTemplate = (binding: Binding) => * binding.inScope(BindingScope.SINGLETON).tag('server'); * * const serverBinding = new Bindi
(...templateFns: BindingTemplate<T>[])
| 965 | * @param templateFns - One or more functions to configure the binding |
| 966 | */ |
| 967 | apply(...templateFns: BindingTemplate<T>[]): this { |
| 968 | for (const fn of templateFns) { |
| 969 | fn(this); |
| 970 | } |
| 971 | return this; |
| 972 | } |
| 973 | |
| 974 | /** |
| 975 | * Convert to a plain JSON object |