22 lines
575 B
TypeScript
Executable file
22 lines
575 B
TypeScript
Executable file
/**
|
|
* Generates a new, generic enum definition in the given project.
|
|
*/
|
|
export interface Schema {
|
|
/**
|
|
* The name of the enum.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* The path at which to create the enum definition, relative to the current workspace.
|
|
*/
|
|
path?: string;
|
|
/**
|
|
* The name of the project in which to create the enum. Default is the configured default
|
|
* project for the workspace.
|
|
*/
|
|
project: string;
|
|
/**
|
|
* Adds a developer-defined type to the filename, in the format "name.type.ts".
|
|
*/
|
|
type?: string;
|
|
}
|