You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.5 KiB

4 years ago
  1. {
  2. "definitions": {
  3. "HandlerFunction": {
  4. "description": "Function that executes for every progress step",
  5. "instanceof": "Function",
  6. "tsType": "((percentage: number, msg: string, ...args: string[]) => void)"
  7. },
  8. "ProgressPluginOptions": {
  9. "type": "object",
  10. "additionalProperties": false,
  11. "properties": {
  12. "activeModules": {
  13. "description": "Show active modules count and one active module in progress message",
  14. "type": "boolean"
  15. },
  16. "entries": {
  17. "description": "Show entries count in progress message",
  18. "type": "boolean"
  19. },
  20. "handler": {
  21. "description": "Function that executes for every progress step",
  22. "anyOf": [
  23. {
  24. "$ref": "#/definitions/HandlerFunction"
  25. }
  26. ]
  27. },
  28. "modules": {
  29. "description": "Show modules count in progress message",
  30. "type": "boolean"
  31. },
  32. "modulesCount": {
  33. "description": "Minimum modules count to start with. Only for mode=modules. Default: 500",
  34. "type": "number"
  35. },
  36. "profile": {
  37. "description": "Collect profile data for progress steps. Default: false",
  38. "enum": [true, false, null]
  39. }
  40. }
  41. }
  42. },
  43. "title": "ProgressPluginArgument",
  44. "oneOf": [
  45. {
  46. "$ref": "#/definitions/ProgressPluginOptions"
  47. },
  48. {
  49. "$ref": "#/definitions/HandlerFunction"
  50. }
  51. ]
  52. }