29 lines
687 B
TypeScript
Executable file
29 lines
687 B
TypeScript
Executable file
/**
|
|
* Creates a new, generic interceptor definition in the given project.
|
|
*/
|
|
export interface Schema {
|
|
/**
|
|
* When true (the default), creates files at the top level of the project.
|
|
*/
|
|
flat?: boolean;
|
|
/**
|
|
* Creates the interceptor as a `HttpInterceptorFn`.
|
|
*/
|
|
functional?: boolean;
|
|
/**
|
|
* The name of the interceptor.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* The path at which to create the interceptor, relative to the workspace root.
|
|
*/
|
|
path?: string;
|
|
/**
|
|
* The name of the project.
|
|
*/
|
|
project: string;
|
|
/**
|
|
* Do not create "spec.ts" test files for the new interceptor.
|
|
*/
|
|
skipTests?: boolean;
|
|
}
|