Skip to content

Commit 2510c46

Browse files
committed
small formatting update
1 parent 69ce45e commit 2510c46

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

fern/products/sdks/overview/typescript/custom-code.mdx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,23 @@ To get started adding custom code:
2323

2424
### Create a new file and add your custom logic
2525

26-
<CodeBlock title="src/helper.ts">
27-
```typescript
26+
```typescript title="src/helper.ts"
2827
export function myHelper(): void {
2928
return console.log("Hello world!");
3029
}
3130
```
32-
</CodeBlock>
3331

3432
### Add your file to `.fernignore`
3533

3634
<Tip>A `.fernignore` file is automatically created in your SDK repository when you use GitHub publishing.</Tip>
3735

38-
<CodeBlock title=".fernignore">
39-
```yaml {3}
36+
37+
```yaml {3} title=".fernignore"
4038
# Specify files that shouldn't be modified by Fern
4139

4240
src/helper.ts
4341
```
4442

45-
</CodeBlock>
46-
4743
### Consume the helper
4844

4945
Now your users can consume the helper function by importing it from the SDK:

0 commit comments

Comments
 (0)