@schematics/angular
Version:
Schematics specific to Angular
47 lines (46 loc) • 1.13 kB
TypeScript
/**
* Creates a new generic pipe definition in the given or default project.
*/
export interface Schema {
/**
* When true, the declaring NgModule exports this pipe.
*/
export?: boolean;
/**
* When true (the default) creates files at the top level of the project.
*/
flat?: boolean;
/**
* When true, applies lint fixes after generating the pipe.
*/
lintFix?: boolean;
/**
* The declaring NgModule.
*/
module?: string;
/**
* The name of the pipe.
*/
name: string;
/**
* The path at which to create the pipe, relative to the workspace root.
*/
path?: string;
/**
* The name of the project.
*/
project?: string;
/**
* When true, does not import this pipe into the owning NgModule.
*/
skipImport?: boolean;
/**
* When true, does not create "spec.ts" test files for the new pipe.
*/
skipTests?: boolean;
/**
* When true (the default), generates a "spec.ts" test file for the new pipe.
* @deprecated Use "skipTests" instead.
*/
spec?: boolean;
}