(options: T)
| 175 | } |
| 176 | |
| 177 | export function template<T extends object>(options: T): Rule { |
| 178 | return chain([ |
| 179 | contentTemplate(options), |
| 180 | // Force cast to PathTemplateData. We need the type for the actual pathTemplate() call, |
| 181 | // but in this case we cannot do anything as contentTemplate are more permissive. |
| 182 | // Since values are coerced to strings in PathTemplates it will be fine in the end. |
| 183 | pathTemplate(options as {} as PathTemplateData), |
| 184 | ]); |
| 185 | } |
| 186 | |
| 187 | export function applyTemplates<T extends object>(options: T): Rule { |
| 188 | return forEach( |
no test coverage detected