element.d.ts 466 B

12345678910111213
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.io/license
  7. */
  8. import { ElementRef } from '@angular/core';
  9. /**
  10. * Coerces an ElementRef or an Element into an element.
  11. * Useful for APIs that can accept either a ref or the native element itself.
  12. */
  13. export declare function coerceElement<T>(elementOrRef: ElementRef<T> | T): T;