1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { BaseException } from '@angular-devkit/core';
|
9 | import { FileOperator, Rule } from '../engine/interface';
|
10 | export declare const TEMPLATE_FILENAME_RE: RegExp;
|
11 | export declare class OptionIsNotDefinedException extends BaseException {
|
12 | constructor(name: string);
|
13 | }
|
14 | export declare class UnknownPipeException extends BaseException {
|
15 | constructor(name: string);
|
16 | }
|
17 | export declare class InvalidPipeException extends BaseException {
|
18 | constructor(name: string);
|
19 | }
|
20 | export type PathTemplateValue = boolean | string | number | undefined;
|
21 | export type PathTemplatePipeFunction = (x: string) => PathTemplateValue;
|
22 | export type PathTemplateData = {
|
23 | [key: string]: PathTemplateValue | PathTemplateData | PathTemplatePipeFunction;
|
24 | };
|
25 | export interface PathTemplateOptions {
|
26 | interpolationStart: string;
|
27 | interpolationEnd: string;
|
28 | pipeSeparator?: string;
|
29 | }
|
30 | export declare function applyContentTemplate<T>(options: T): FileOperator;
|
31 | export declare function contentTemplate<T>(options: T): Rule;
|
32 | export declare function applyPathTemplate<T extends PathTemplateData>(data: T, options?: PathTemplateOptions): FileOperator;
|
33 | export declare function pathTemplate<T extends PathTemplateData>(options: T): Rule;
|
34 |
|
35 |
|
36 |
|
37 | export declare function renameTemplateFiles(): Rule;
|
38 | export declare function template<T extends object>(options: T): Rule;
|
39 | export declare function applyTemplates<T extends object>(options: T): Rule;
|