版博士V2.0程序
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.
 
 
 
 

39 lines
694 B

  1. import Plugin from './Plugin';
  2. /**
  3. * PluginArray.
  4. */
  5. export default class PluginArray {
  6. [n: number]: Plugin;
  7. readonly length: number;
  8. /**
  9. * Constructor.
  10. *
  11. * @param plugins Plugins.
  12. */
  13. constructor(plugins: Plugin[]);
  14. /**
  15. * Returns an item.
  16. *
  17. * @param index Index.
  18. * @returns Plugin.
  19. */
  20. item(index: number): Plugin;
  21. /**
  22. * Returns an item.
  23. *
  24. * @param name Name.
  25. * @returns Plugin.
  26. */
  27. namedItem(name: string): Plugin;
  28. /**
  29. * Refreshes the list.
  30. */
  31. refresh(): void;
  32. /**
  33. * Returns the object as a string.
  34. *
  35. * @returns String.
  36. */
  37. toString(): string;
  38. }