UNPKG

ng-zorro-antd

Version:

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

30 lines (29 loc) 1.1 kB
/** * @license * Copyright Alibaba.com All Rights Reserved. * * 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 { NzConfigService } from 'ng-zorro-antd/core/config'; import { NzSafeAny } from 'ng-zorro-antd/core/types'; import { BehaviorSubject, Observable } from 'rxjs'; import { JoinedEditorOptions, NzCodeEditorConfig } from './typings'; export declare class NzCodeEditorService { private readonly nzConfigService; private document; private firstEditorInitialized; private loaded$; private loadingStatus; private option; private config; option$: BehaviorSubject<JoinedEditorOptions>; constructor(nzConfigService: NzConfigService, _document: NzSafeAny, config?: NzCodeEditorConfig); updateDefaultOption(option: JoinedEditorOptions): void; private _updateDefaultOption; requestToInit(): Observable<JoinedEditorOptions>; private loadMonacoScript; private onLoad; private onInit; private getLatestOption; }