check.d.ts 762 B

1234567891011121314
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. import { TemplateRef } from '@angular/core';
  6. import { IndexableObject, NzSafeAny } from 'ng-zorro-antd/core/types';
  7. export declare function isNotNil<T>(value: T): value is NonNullable<T>;
  8. export declare function isNil(value: unknown): value is null | undefined;
  9. /**
  10. * Examine if two objects are shallowly equaled.
  11. */
  12. export declare function shallowEqual(objA?: IndexableObject, objB?: IndexableObject): boolean;
  13. export declare function isNonEmptyString(value: NzSafeAny): boolean;
  14. export declare function isTemplateRef<T>(value: TemplateRef<T> | NzSafeAny): value is TemplateRef<T>;