typings.d.ts 872 B

123456789101112131415161718192021
  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 { editor, Environment } from 'monaco-editor';
  6. import IStandAloneEditorConstructionOptions = editor.IStandaloneEditorConstructionOptions;
  7. import IDiffEditorConstructionOptions = editor.IDiffEditorConstructionOptions;
  8. declare global {
  9. interface Window {
  10. MonacoEnvironment?: Environment | undefined;
  11. }
  12. }
  13. export type EditorOptions = IStandAloneEditorConstructionOptions;
  14. export type DiffEditorOptions = IDiffEditorConstructionOptions;
  15. export type JoinedEditorOptions = EditorOptions | DiffEditorOptions;
  16. export type NzEditorMode = 'normal' | 'diff';
  17. export declare const enum NzCodeEditorLoadingStatus {
  18. UNLOAD = "unload",
  19. LOADING = "loading",
  20. LOADED = "LOADED"
  21. }