UNPKG

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