schema.d.ts 1004 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. * Generates a new, generic route guard definition in the given project.
  3. */
  4. export 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 whether to generate a guard as a function.
  11. */
  12. functional?: boolean;
  13. /**
  14. * Specifies which type of guard to create.
  15. */
  16. implements?: Implement[];
  17. /**
  18. * The name of the new route guard.
  19. */
  20. name: string;
  21. /**
  22. * The path at which to create the interface that defines the guard, relative to the current
  23. * workspace.
  24. */
  25. path?: string;
  26. /**
  27. * The name of the project.
  28. */
  29. project: string;
  30. /**
  31. * Do not create "spec.ts" test files for the new guard.
  32. */
  33. skipTests?: boolean;
  34. }
  35. export declare enum Implement {
  36. CanActivate = "CanActivate",
  37. CanActivateChild = "CanActivateChild",
  38. CanDeactivate = "CanDeactivate",
  39. CanMatch = "CanMatch"
  40. }