22 lines
474 B
TypeScript
22 lines
474 B
TypeScript
|
/**
|
||
|
* Creates a new, generic web worker definition in the given project.
|
||
|
*/
|
||
|
export interface Schema {
|
||
|
/**
|
||
|
* The name of the worker.
|
||
|
*/
|
||
|
name: string;
|
||
|
/**
|
||
|
* The path at which to create the worker file, relative to the current workspace.
|
||
|
*/
|
||
|
path?: string;
|
||
|
/**
|
||
|
* The name of the project.
|
||
|
*/
|
||
|
project: string;
|
||
|
/**
|
||
|
* Add a worker creation snippet in a sibling file of the same name.
|
||
|
*/
|
||
|
snippet?: boolean;
|
||
|
}
|