schema.d.ts 563 B

12345678910111213141516171819202122232425
  1. /**
  2. * Creates a new generic web worker definition in the given or default project.
  3. */
  4. export interface Schema {
  5. /**
  6. * The name of the worker.
  7. */
  8. name: string;
  9. /**
  10. * The path at which to create the worker file, relative to the current workspace.
  11. */
  12. path?: string;
  13. /**
  14. * The name of the project.
  15. */
  16. project: string;
  17. /**
  18. * Add a worker creation snippet in a sibling file of the same name.
  19. */
  20. snippet?: boolean;
  21. /**
  22. * The target to apply web worker to.
  23. */
  24. target?: string;
  25. }