Skip to content

Commit 1ec2b5f

Browse files
authored
[Docs Site] Add prettierOptions to detype (#18669)
1 parent caa463b commit 1ec2b5f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/TypeScriptExample.astro

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ if (!code) {
5858
5959
code = code.replace(/\u007f/g, "\n");
6060
61-
const js = await transform(code, "placeholder.ts");
61+
const js = await transform(code, "placeholder.ts", {
62+
prettierOptions: {
63+
useTabs: true,
64+
},
65+
});
6266
6367
const TabsWrapper = tabsWrapper ? Tabs : Fragment;
6468
---

0 commit comments

Comments
 (0)