@types/babel__code-frame 7.0.5 → 7.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
babel__code-frame/README.md
CHANGED
|
@@ -56,11 +56,20 @@ export default function codeFrame(
|
|
|
56
56
|
colNumber: number,
|
|
57
57
|
options?: BabelCodeFrameOptions,
|
|
58
58
|
): string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Add syntax highlighting to a code snippet, to be displayed in a terminal.
|
|
62
|
+
*
|
|
63
|
+
* @param code Raw code to be highlighted
|
|
64
|
+
*
|
|
65
|
+
* @returns Highlighted code
|
|
66
|
+
*/
|
|
67
|
+
export function highlight(code: string): string;
|
|
59
68
|
|
|
60
69
|
````
|
|
61
70
|
|
|
62
71
|
### Additional Details
|
|
63
|
-
* Last updated:
|
|
72
|
+
* Last updated: Sat, 10 Jan 2026 08:39:14 GMT
|
|
64
73
|
* Dependencies: none
|
|
65
74
|
|
|
66
75
|
# Credits
|
babel__code-frame/index.d.ts
CHANGED
|
@@ -46,3 +46,12 @@ export default function codeFrame(
|
|
|
46
46
|
colNumber: number,
|
|
47
47
|
options?: BabelCodeFrameOptions,
|
|
48
48
|
): string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Add syntax highlighting to a code snippet, to be displayed in a terminal.
|
|
52
|
+
*
|
|
53
|
+
* @param code Raw code to be highlighted
|
|
54
|
+
*
|
|
55
|
+
* @returns Highlighted code
|
|
56
|
+
*/
|
|
57
|
+
export function highlight(code: string): string;
|
babel__code-frame/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/babel__code-frame",
|
|
3
|
-
"version": "7.0
|
|
3
|
+
"version": "7.27.0",
|
|
4
4
|
"description": "TypeScript definitions for @babel/code-frame",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__code-frame",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"scripts": {},
|
|
27
27
|
"dependencies": {},
|
|
28
|
-
"
|
|
29
|
-
"
|
|
28
|
+
"peerDependencies": {},
|
|
29
|
+
"typesPublisherContentHash": "3e5f42d6ed9f54b50ff2ccb4806d4f8e6e2ea71af21665302fdb46d414a3ba98",
|
|
30
|
+
"typeScriptVersion": "5.2"
|
|
30
31
|
}
|