Skip to content

Commit e8da069

Browse files
committed
Remove unnecessary code and files
1 parent 2fc52e9 commit e8da069

20 files changed

+102
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
const routingConfig = {
2+
routes: [
3+
{
4+
path: "home",
5+
component: "HomeComponent",
6+
},
7+
{
8+
path: "about",
9+
component: 12,
10+
},
11+
{
12+
path: "contact",
13+
component: "ContactComponent",
14+
},
15+
],
16+
};
17+
18+
const createRoutes = (config: {
19+
routes: {
20+
path: string;
21+
component: string;
22+
}[];
23+
}) => {};
24+
25+
createRoutes(routingConfig);
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
const createRoutes = (config: {
2+
routes: {
3+
path: string;
4+
component: string;
5+
}[];
6+
}) => {};
7+
8+
createRoutes({
9+
routes: [
10+
{
11+
path: "home",
12+
component: "HomeComponent",
13+
},
14+
{
15+
path: "about",
16+
component: 12,
17+
},
18+
{
19+
path: "contact",
20+
component: "ContactComponent",
21+
},
22+
],
23+
});
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
type RoutingConfig = {
2+
routes: {
3+
path: string;
4+
component: string;
5+
}[];
6+
};
7+
8+
const createRoutes = (config: RoutingConfig) => {};
9+
10+
const routingConfig: RoutingConfig = {
11+
routes: [
12+
{
13+
path: "home",
14+
component: "HomeComponent",
15+
},
16+
{
17+
path: "about",
18+
component: 12,
19+
},
20+
{
21+
path: "contact",
22+
component: "ContactComponent",
23+
},
24+
],
25+
};
26+
27+
createRoutes(routingConfig);
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
type RoutingConfig = {
2+
routes: {
3+
path: string;
4+
component: string;
5+
}[];
6+
};
7+
8+
const createRoutes = (config: RoutingConfig) => {};
9+
10+
const routingConfig = {
11+
routes: [
12+
{
13+
path: "home",
14+
component: "HomeComponent",
15+
},
16+
{
17+
path: "about",
18+
component: 12,
19+
},
20+
{
21+
path: "contact",
22+
component: "ContactComponent",
23+
},
24+
],
25+
} satisfies RoutingConfig;
26+
27+
createRoutes(routingConfig);

0 commit comments

Comments
 (0)