Skip to content

Commit ab3088f

Browse files
committed
enhance: Fix compatibility
1 parent 5f8a84a commit ab3088f

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

examples/github-app/src/index.server.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// this is just to make it work with older typescript versions in our tests
2+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
3+
// @ts-ignore
4+
import { antdSpout } from '@anansi/core/antd';
15
import {
26
laySpouts,
37
documentSpout,
@@ -6,7 +10,6 @@ import {
610
routerSpout,
711
JSONSpout,
812
appSpout,
9-
antdSpout,
1013
navigatorSpout,
1114
} from '@anansi/core/server';
1215
import { useController } from '@data-client/react';
@@ -24,6 +27,9 @@ const csPolicy = {
2427
};
2528

2629
const spouts = prefetchSpout('controller')(
30+
// this is just to make it work with older typescript versions in our tests
31+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
32+
// @ts-ignore
2733
documentSpout({ title: 'Github App', lang: 'en', csPolicy })(
2834
antdSpout()(
2935
JSONSpout()(

examples/github-app/src/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ import {
55
routerSpout,
66
JSONSpout,
77
appSpout,
8-
antdSpout,
98
navigatorSpout,
109
} from '@anansi/core';
10+
// this is just to make it work with older typescript versions in our tests
11+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
12+
// @ts-ignore
13+
import { antdSpout } from '@anansi/core/antd';
1114
import { useController } from '@data-client/react';
1215

1316
import app from '@/app';

examples/github-app/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"jsx": "preserve", // this is just to make it work with older typescript versions in our tests
99
"declaration": true,
1010
"strict": true,
11-
"moduleResolution": "node",
11+
"moduleResolution": "node", // this is just to make it work with older typescript versions in our tests
1212
"skipLibCheck": true,
1313
"allowSyntheticDefaultImports": true,
1414
"esModuleInterop": true,

examples/todo-app/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"declaration": true,
1010
"strict": true,
1111
"noImplicitAny": false,
12-
"moduleResolution": "node",
12+
"moduleResolution": "node", // this is just to make it work with older typescript versions in our tests
1313
"skipLibCheck": true,
1414
"allowSyntheticDefaultImports": true,
1515
"esModuleInterop": true,

0 commit comments

Comments
 (0)