location.d.ts 638 B

1234567891011121314151617181920
  1. /**
  2. * @license
  3. * SPDX-License-Identifier: Apache-2.0
  4. */
  5. import { Url } from '../../builders/url_sanitizer';
  6. /**
  7. * setHref safely sets {@link Location.href} on the given {@link Location} with
  8. * given {@link Url}.
  9. */
  10. export declare function setHref(loc: Location, url: Url): void;
  11. /**
  12. * replace safely calls {@link Location.replace} on the given {@link Location}
  13. * with given {@link Url}.
  14. */
  15. export declare function replace(loc: Location, url: Url): void;
  16. /**
  17. * assign safely calls {@link Location.assign} on the given {@link Location}
  18. * with given {@link Url}.
  19. */
  20. export declare function assign(loc: Location, url: Url): void;