source: trip-planner-front/node_modules/@angular/material/core/common-behaviors/initialized.d.ts@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.4 KB
Line 
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 */
8import { Observable } from 'rxjs';
9import { Constructor } from './constructor';
10/**
11 * Mixin that adds an initialized property to a directive which, when subscribed to, will emit a
12 * value once markInitialized has been called, which should be done during the ngOnInit function.
13 * If the subscription is made after it has already been marked as initialized, then it will trigger
14 * an emit immediately.
15 * @docs-private
16 */
17export interface HasInitialized {
18 /** Stream that emits once during the directive/component's ngOnInit. */
19 initialized: Observable<void>;
20 /**
21 * Sets the state as initialized and must be called during ngOnInit to notify subscribers that
22 * the directive has been initialized.
23 * @docs-private
24 */
25 _markInitialized: () => void;
26}
27/**
28 * @docs-private
29 * @deprecated No longer necessary to apply to mixin classes. To be made private.
30 * @breaking-change 13.0.0
31 */
32export declare type HasInitializedCtor = Constructor<HasInitialized>;
33/** Mixin to augment a directive with an initialized property that will emits when ngOnInit ends. */
34export declare function mixinInitialized<T extends Constructor<{}>>(base: T): HasInitializedCtor & T;
Note: See TracBrowser for help on using the repository browser.