source: trip-planner-front/node_modules/@schematics/angular/component/schema.d.ts@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 3.0 KB
Line 
1/**
2 * Creates a new, generic component definition in the given or default project.
3 */
4export interface Schema {
5 /**
6 * The change detection strategy to use in the new component.
7 */
8 changeDetection?: ChangeDetection;
9 /**
10 * Specifies if the style will contain `:host { display: block; }`.
11 */
12 displayBlock?: boolean;
13 /**
14 * The declaring NgModule exports this component.
15 */
16 export?: boolean;
17 /**
18 * Create the new files at the top level of the current project.
19 */
20 flat?: boolean;
21 /**
22 * Include styles inline in the component.ts file. Only CSS styles can be included inline.
23 * By default, an external styles file is created and referenced in the component.ts file.
24 */
25 inlineStyle?: boolean;
26 /**
27 * Include template inline in the component.ts file. By default, an external template file
28 * is created and referenced in the component.ts file.
29 */
30 inlineTemplate?: boolean;
31 /**
32 * Apply lint fixes after generating the component.
33 * @deprecated Use "ng lint --fix" directly instead.
34 */
35 lintFix?: boolean;
36 /**
37 * The declaring NgModule.
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 */
90export declare enum ChangeDetection {
91 Default = "Default",
92 OnPush = "OnPush"
93}
94/**
95 * The file extension or preprocessor to use for style files, or 'none' to skip generating
96 * the style file.
97 */
98export declare enum Style {
99 Css = "css",
100 Less = "less",
101 None = "none",
102 Sass = "sass",
103 Scss = "scss"
104}
105/**
106 * The view encapsulation strategy to use in the new component.
107 */
108export declare enum ViewEncapsulation {
109 Emulated = "Emulated",
110 None = "None",
111 ShadowDom = "ShadowDom"
112}
Note: See TracBrowser for help on using the repository browser.