index.d.ts 814 B

123456789101112131415161718192021
  1. export { B as BidiModule, b as Dir, a as Direction, D as Directionality } from '../bidi-module.d-D-fEBKdS.js';
  2. import { InjectionToken } from '@angular/core';
  3. /**
  4. * Injection token used to inject the document into Directionality.
  5. * This is used so that the value can be faked in tests.
  6. *
  7. * We can't use the real document in tests because changing the real `dir` causes geometry-based
  8. * tests in Safari to fail.
  9. *
  10. * We also can't re-provide the DOCUMENT token from platform-browser because the unit tests
  11. * themselves use things like `querySelector` in test code.
  12. *
  13. * This token is defined in a separate file from Directionality as a workaround for
  14. * https://github.com/angular/angular/issues/22559
  15. *
  16. * @docs-private
  17. */
  18. declare const DIR_DOCUMENT: InjectionToken<Document>;
  19. export { DIR_DOCUMENT };