index.d.ts 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import * as i0 from '@angular/core';
  2. import { ModuleWithProviders } from '@angular/core';
  3. import * as i1 from '@fortawesome/angular-fontawesome';
  4. import { FaIconLibraryInterface, IconPrefix, IconName, IconDefinition } from '@fortawesome/angular-fontawesome';
  5. declare class FaTestingConfig {
  6. /**
  7. * What to do when `addIcons()` or `addIconPacks()` is invoked on
  8. * the FaIconLibrary provided by the FontAwesomeTestingModule.
  9. *
  10. * Possible values are:
  11. * - `'throwError'` - Throw an error.
  12. * - `'logWarning'` - Write a warning to the console.
  13. * - `'noop'` - Do nothing.
  14. *
  15. * Note that in any case the icon will not be added to the library.
  16. *
  17. * @default 'throwError'
  18. */
  19. whenAddingIcons: 'throwError' | 'logWarning' | 'noop';
  20. static ɵfac: i0.ɵɵFactoryDeclaration<FaTestingConfig, never>;
  21. static ɵprov: i0.ɵɵInjectableDeclaration<FaTestingConfig>;
  22. }
  23. declare class FontAwesomeTestingModule {
  24. /**
  25. * Use this method to configure the module’s behaviour when trying to add icons
  26. * and icon packs to the mock icon library.
  27. */
  28. static forRoot(config?: Partial<FaTestingConfig>): ModuleWithProviders<FontAwesomeTestingModule>;
  29. static ɵfac: i0.ɵɵFactoryDeclaration<FontAwesomeTestingModule, never>;
  30. static ɵmod: i0.ɵɵNgModuleDeclaration<FontAwesomeTestingModule, never, never, [typeof i1.FontAwesomeModule]>;
  31. static ɵinj: i0.ɵɵInjectorDeclaration<FontAwesomeTestingModule>;
  32. }
  33. declare class MockFaIconLibrary implements FaIconLibraryInterface {
  34. private config;
  35. constructor(config: FaTestingConfig);
  36. addIcons(): void;
  37. addIconPacks(): void;
  38. getIconDefinition(prefix: IconPrefix, name: IconName): IconDefinition;
  39. static ɵfac: i0.ɵɵFactoryDeclaration<MockFaIconLibrary, never>;
  40. static ɵprov: i0.ɵɵInjectableDeclaration<MockFaIconLibrary>;
  41. }
  42. export { FaTestingConfig, FontAwesomeTestingModule, MockFaIconLibrary };