We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3ed197 commit 6159be9Copy full SHA for 6159be9
packages/site-kit/src/lib/markdown/renderer.ts
@@ -310,7 +310,7 @@ function get_jsdoc(node: ts.Node) {
310
* Transforms a JS code block into a TS code block by turning JSDoc into type annotations.
311
* Due to pragmatism only the cases currently used in the docs are implemented.
312
*/
313
-export async function convert_to_ts(js_code: string, indent = '', offset = '') {
+async function convert_to_ts(js_code: string, indent = '', offset = '') {
314
js_code = js_code
315
.replaceAll('// @filename: index.js', '// @filename: index.ts')
316
.replace(/(\/\/\/ .+?\.)js/, '$1ts')
0 commit comments