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

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

initial commit

  • Property mode set to 100644
File size: 1.0 KB
Line 
1/**
2 * Generates a new, generic route guard definition in the given or default project.
3 */
4export interface Schema {
5 /**
6 * When true (the default), creates the new files at the top level of the current project.
7 */
8 flat?: boolean;
9 /**
10 * Specifies which interfaces to implement.
11 */
12 implements?: Implement[];
13 /**
14 * Apply lint fixes after generating the guard.
15 * @deprecated Use "ng lint --fix" directly instead.
16 */
17 lintFix?: boolean;
18 /**
19 * The name of the new route guard.
20 */
21 name: string;
22 /**
23 * The path at which to create the interface that defines the guard, relative to the current
24 * workspace.
25 */
26 path?: string;
27 /**
28 * The name of the project.
29 */
30 project?: string;
31 /**
32 * Do not create "spec.ts" test files for the new guard.
33 */
34 skipTests?: boolean;
35}
36export declare enum Implement {
37 CanActivate = "CanActivate",
38 CanActivateChild = "CanActivateChild",
39 CanDeactivate = "CanDeactivate",
40 CanLoad = "CanLoad"
41}
Note: See TracBrowser for help on using the repository browser.