Files
Hydro/packages/ui-default/typed.d.ts
T
undefined 489b2dbeec ui: monaco: upgrade to 0.57, drop monaco-editor-webpack-plugin
- Migrate entry points to the 0.57 exports scheme (monaco-editor/editor,
  languages/features/typescript/register)
- Wire workers via the official MonacoEnvironment.getWorker +
  new Worker(new URL(...)) integration; webpack emits them as shared-chunk
  classic workers (chrome 70 compatible), total assets -21%
- Keep css/html/json language features (register.all) and route their
  worker labels; json is used by the cmeditor textareas
- Replace removed esm/vs/nls.messages with an inline implementation in the
  nls shim
- Drop MinChunkSizePlugin: it merged worker chunks into the main chunk and
  broke the runtime id module (webpack#15416)
- Remove monaco-editor-webpack-plugin dependency
- loadMonaco() now returns the loaded feature module exports, e.g.
  loadMonaco(['typescript']).typescript.javascriptDefaults
2026-10-09 16:26:44 +00:00

37 lines
1.1 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
declare module '*.svg?react' {
import { ComponentType } from 'react';
const content: ComponentType;
export default content;
}
declare module '*.vue' {
export default {} as any;
}
declare module '*.css' {
const content: string;
export default content;
}
declare module '*.styl' {
const content: string;
export default content;
}
declare module '*.scss' {
const content: string;
export default content;
}
// monaco internal modules blocked by package exports; types declared here, runtime is aliased in webpack config
declare module 'monaco-editor/esm/vs/editor/browser/editorExtensions' {
export class EditorAction {
constructor(opts: { id: string; label: string; alias: string });
run(accessor: any, editor: any): Promise<any>;
}
export function registerEditorAction(ctor: any): void;
}
declare module 'monaco-editor/esm/vs/platform/quickinput/common/quickInput' {
// monaco DI token(createDecorator 返回值),运行时按值使用
export const IQuickInputService: any;
}
declare module 'monaco-editor/esm/vs/base/browser/markdownRenderer' {
export function renderMarkdown(opts: any): any;
}