Skip to content

Commit 7dc3b30

Browse files
committed
updated migration file
1 parent e7a7743 commit 7dc3b30

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

MIGRATION.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
## Migrating from v2 to v3
22
This migration document details the changes needed to separate nested modular blocks into distinct interfaces. This update will impact how modular blocks are represented and utilized throughout the codebase.
33

4-
## Before Example
4+
## Before
5+
```typescript
56
export interface Test {
67
/** Version */
78
_version?: 2;
@@ -24,9 +25,11 @@ export interface Test {
2425
};
2526
}[];
2627
}
28+
```
2729

2830

2931
## After
32+
```typescript
3033
export interface Test {
3134
/** Version */
3235
_version: 2;
@@ -36,6 +39,7 @@ export interface Test {
3639
modular_blocks?: ModularBlocks[];
3740
}
3841

42+
3943
export interface ModularBlocks {
4044
/** Multi Line Textbox */
4145
multi_line?: string;
@@ -49,3 +53,4 @@ export interface ModularBlocks1 {
4953
/** Multi Line Textbox */
5054
multi_line?: string;
5155
}
56+
```

0 commit comments

Comments
 (0)