Skip to content

Commit daea63f

Browse files
authored
Improved code reuse (#30)
1 parent b010ab7 commit daea63f

File tree

3 files changed

+9
-30
lines changed

3 files changed

+9
-30
lines changed

src/column/ColumnOrder.ts

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
1-
type ColumnOrder =
2-
| "first"
3-
| "last"
4-
| 1
5-
| 2
6-
| 3
7-
| 4
8-
| 5
9-
| 6
10-
| 7
11-
| 8
12-
| 9
13-
| 10
14-
| 11
15-
| 12;
1+
import Columns from "./Columns";
2+
3+
type ColumnOrder = "first" | "last" | Columns;
164

175
export default ColumnOrder;

src/column/ColumnSize.ts

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
1-
type ColumnSize =
2-
| "auto"
3-
| "none"
4-
| 1
5-
| 2
6-
| 3
7-
| 4
8-
| 5
9-
| 6
10-
| 7
11-
| 8
12-
| 9
13-
| 10
14-
| 11
15-
| 12;
1+
import Columns from "./Columns";
2+
3+
type ColumnSize = "auto" | "none" | Columns;
164

175
export default ColumnSize;

src/column/Columns.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
type Columns = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
2+
3+
export default Columns;

0 commit comments

Comments
 (0)