@types/babel__code-frame 7.0.6 → 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.
@@ -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: Mon, 06 Nov 2023 22:41:04 GMT
72
+ * Last updated: Sat, 10 Jan 2026 08:39:14 GMT
64
73
  * Dependencies: none
65
74
 
66
75
  # Credits
@@ -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;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/babel__code-frame",
3
- "version": "7.0.6",
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
- "typesPublisherContentHash": "a7c50ce38e091a636e921f03f97acd10e18751e3b31a2c052935506af945ee55",
29
- "typeScriptVersion": "4.5"
28
+ "peerDependencies": {},
29
+ "typesPublisherContentHash": "3e5f42d6ed9f54b50ff2ccb4806d4f8e6e2ea71af21665302fdb46d414a3ba98",
30
+ "typeScriptVersion": "5.2"
30
31
  }