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