-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.d.ts
44 lines (37 loc) · 1.4 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import type { MarkupAbbreviation, StylesheetAbbreviation, UserConfig } from 'emmet'
import * as Monaco from 'monaco-editor'
type Dispose = () => void
/**
* emmet for `CSS` / `LESS` / `SCSS`
* @param monaco monaco self, if not provided, will use window.monaco
* @param languages languages needs to support, default `['css']`. Should support any CSS compatible languages like `scss`,`less`
*/
export function emmetCSS(monaco?: typeof Monaco, languages?: string[]): Dispose
/**
* emmet for `HTML`
* @param monaco monaco self, if not provided, will use window.monaco
* @param languages languages needs to support, default `['html']`. Should support any HTML compatible languages like `php`,`twig`
*/
export function emmetHTML(monaco?: typeof Monaco, languages?: string[]): Dispose
/**
* emmet for `JSX` / `TSX`
* @param monaco monaco self, if not provided, will use window.monaco
* @param languages languages needs to support, default `['javascript']`. Should support any jsx compatible languages like `typescript`
*/
export function emmetJSX(monaco?: typeof Monaco, languages?: string[]): Dispose
/**
* internal emmet api
*/
export function expandAbbreviation(
abbreviation: string | MarkupAbbreviation | StylesheetAbbreviation,
config: UserConfig,
): string
/**
* register custom snippets
*/
export function registerCustomSnippets(
language: string,
customSnippets: {
[name: string]: string
},
): void