1 |
|
2 |
|
3 |
|
4 | export interface Schema {
|
5 | |
6 |
|
7 |
|
8 | changeDetection?: ChangeDetection;
|
9 | |
10 |
|
11 |
|
12 | displayBlock?: boolean;
|
13 | |
14 |
|
15 |
|
16 | export?: boolean;
|
17 | |
18 |
|
19 |
|
20 | flat?: boolean;
|
21 | |
22 |
|
23 |
|
24 |
|
25 | inlineStyle?: boolean;
|
26 | |
27 |
|
28 |
|
29 |
|
30 | inlineTemplate?: boolean;
|
31 | |
32 |
|
33 |
|
34 |
|
35 | lintFix?: boolean;
|
36 | |
37 |
|
38 |
|
39 | module?: string;
|
40 | /**
|
41 | * The name of the component.
|
42 | */
|
43 | name: string;
|
44 | /**
|
45 | * The path at which to create the component file, relative to the current workspace.
|
46 | * Default is a folder with the same name as the component in the project root.
|
47 | */
|
48 | path?: string;
|
49 | /**
|
50 | * The prefix to apply to the generated component selector.
|
51 | */
|
52 | prefix?: string;
|
53 | /**
|
54 | * The name of the project.
|
55 | */
|
56 | project?: string;
|
57 | /**
|
58 | * The HTML selector to use for this component.
|
59 | */
|
60 | selector?: string;
|
61 | /**
|
62 | * Do not import this component into the owning NgModule.
|
63 | */
|
64 | skipImport?: boolean;
|
65 | /**
|
66 | * Specifies if the component should have a selector or not.
|
67 | */
|
68 | skipSelector?: boolean;
|
69 | /**
|
70 | * Do not create "spec.ts" test files for the new component.
|
71 | */
|
72 | skipTests?: boolean;
|
73 | /**
|
74 | * The file extension or preprocessor to use for style files, or 'none' to skip generating
|
75 | * the style file.
|
76 | */
|
77 | style?: Style;
|
78 | /**
|
79 | * Adds a developer-defined type to the filename, in the format "name.type.ts".
|
80 | */
|
81 | type?: string;
|
82 | /**
|
83 | * The view encapsulation strategy to use in the new component.
|
84 | */
|
85 | viewEncapsulation?: ViewEncapsulation;
|
86 | }
|
87 | /**
|
88 | * The change detection strategy to use in the new component.
|
89 | */
|
90 | export declare enum ChangeDetection {
|
91 | Default = "Default",
|
92 | OnPush = "OnPush"
|
93 | }
|
94 |
|
95 |
|
96 |
|
97 |
|
98 | export declare enum Style {
|
99 | Css = "css",
|
100 | Less = "less",
|
101 | None = "none",
|
102 | Sass = "sass",
|
103 | Scss = "scss"
|
104 | }
|
105 |
|
106 |
|
107 |
|
108 | export declare enum ViewEncapsulation {
|
109 | Emulated = "Emulated",
|
110 | None = "None",
|
111 | ShadowDom = "ShadowDom"
|
112 | }
|