schema.d.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**
  2. * Creates a new, generic directive definition in the given project.
  3. */
  4. export interface Schema {
  5. /**
  6. * 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. * The declaring NgModule.
  15. */
  16. module?: string;
  17. /**
  18. * The name of the new directive.
  19. */
  20. name: string;
  21. /**
  22. * The path at which to create the interface that defines the directive, relative to the
  23. * workspace root.
  24. */
  25. path?: string;
  26. /**
  27. * A prefix to apply to generated selectors.
  28. */
  29. prefix?: string;
  30. /**
  31. * The name of the project.
  32. */
  33. project: string;
  34. /**
  35. * The HTML selector to use for this directive.
  36. */
  37. selector?: string;
  38. /**
  39. * Do not import this directive into the owning NgModule.
  40. */
  41. skipImport?: boolean;
  42. /**
  43. * Do not create "spec.ts" test files for the new class.
  44. */
  45. skipTests?: boolean;
  46. /**
  47. * Whether the generated directive is standalone.
  48. */
  49. standalone?: boolean;
  50. }