UNPKG

1.23 kBTypeScriptView Raw
1/**
2 * Creates a new generic directive definition in the given or default project.
3 */
4export interface Schema {
5 /**
6 * When true, the declaring NgModule exports this directive.
7 */
8 export?: boolean;
9 /**
10 * When true (the default), creates the new files at the top level of the current project.
11 */
12 flat?: boolean;
13 /**
14 * When true, applies lint fixes after generating the directive.
15 */
16 lintFix?: boolean;
17 /**
18 * The declaring NgModule.
19 */
20 module?: string;
21 /**
22 * The name of the new directive.
23 */
24 name: string;
25 /**
26 * The path at which to create the interface that defines the directive, relative to the
27 * workspace root.
28 */
29 path?: string;
30 /**
31 * A prefix to apply to generated selectors.
32 */
33 prefix?: string;
34 /**
35 * The name of the project.
36 */
37 project?: string;
38 /**
39 * The HTML selector to use for this directive.
40 */
41 selector?: string;
42 /**
43 * When true, does not import this directive into the owning NgModule.
44 */
45 skipImport?: boolean;
46 /**
47 * When true, does not create "spec.ts" test files for the new class.
48 */
49 skipTests?: boolean;
50}