UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

29 lines (28 loc) 1.05 kB
/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { OnDestroy } from '@angular/core'; import { BehaviorSubject, Observable } from 'rxjs'; import { NzConfigService } from 'ng-zorro-antd/core/config'; import { NzSafeAny } from 'ng-zorro-antd/core/types'; import { JoinedEditorOptions } from './typings'; export declare class NzCodeEditorService implements OnDestroy { private readonly nzConfigService; private document; private firstEditorInitialized; private loaded$; private loadingStatus; private option; private config; private subscription; option$: BehaviorSubject<JoinedEditorOptions>; constructor(nzConfigService: NzConfigService, _document: NzSafeAny); ngOnDestroy(): void; private _updateDefaultOption; requestToInit(): Observable<JoinedEditorOptions>; private loadMonacoScript; private onLoad; private onInit; private getLatestOption; }