UNPKG

1.34 kBTypeScriptView Raw
1/**
2 * Creates a new generic NgModule definition in the given or default project.
3 */
4export interface Schema {
5 /**
6 * When true, the new NgModule imports "CommonModule".
7 */
8 commonModule?: boolean;
9 /**
10 * When true, creates the new files at the top level of the current project root.
11 */
12 flat?: boolean;
13 /**
14 * When true, applies lint fixes after generating the module.
15 */
16 lintFix?: boolean;
17 /**
18 * The declaring NgModule.
19 */
20 module?: string;
21 /**
22 * The name of the NgModule.
23 */
24 name: string;
25 /**
26 * The path at which to create the NgModule, relative to the workspace root.
27 */
28 path?: string;
29 /**
30 * The name of the project.
31 */
32 project?: string;
33 /**
34 * The route path for a lazy-loaded module. When supplied, creates a component in the new
35 * module, and adds the route to that component in the `Routes` array declared in the module
36 * provided in the `--module` option.
37 */
38 route?: string;
39 /**
40 * When true, creates a routing module.
41 */
42 routing?: boolean;
43 /**
44 * The scope for the new routing module.
45 */
46 routingScope?: RoutingScope;
47}
48/**
49 * The scope for the new routing module.
50 */
51export declare enum RoutingScope {
52 Child = "Child",
53 Root = "Root"
54}