Файли
openidea/src/emmet.d.ts
T
l0ng-ai cacddee19d feat(web): Open HTML in browsers with a built-in server; add Emmet
- ide-web: built-in static server on 127.0.0.1 that serves project files,
  plus detection and launching of installed browsers.
- Open In › Browser in the editor, project view and tab menus; browser bar
  and built-in preview beside HTML editors; ⌃⇧R opens the default browser.
- Emmet: Tab expansion in markup editors and Update Tag with Emmet.

Claude-Session: https://claude.ai/code/session_01SaPPsVPuk6ZTNsoUCNCbMv
2026-10-24 22:16:28 +08:00

22 рядки
693 B
TypeScript

// `emmet` ships typings its package.json "exports" does not expose; the subset used here.
declare module "emmet" {
export type SyntaxType = "markup" | "stylesheet";
export interface UserConfig {
type?: SyntaxType;
syntax?: string;
options?: Record<string, unknown>;
}
export interface ExtractedAbbreviation {
abbreviation: string;
location: number;
start: number;
end: number;
}
export default function expandAbbreviation(abbr: string, config?: UserConfig): string;
export function extract(
line: string,
pos?: number,
options?: Partial<{ lookAhead: boolean; type: SyntaxType; prefix: string }>,
): ExtractedAbbreviation | undefined;
}