Skip to content

Commit d69e546

Browse files
chore: adopt TypeScript 7.0 beta (tsgo) for typecheck
Co-Authored-By: Eric Allam <eallam@icloud.com>
1 parent 8eb596f commit d69e546

48 files changed

Lines changed: 293 additions & 169 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.configs/tsconfig.base.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"esModuleInterop": true,
2727
"emitDecoratorMetadata": false,
2828
"experimentalDecorators": false,
29-
"downlevelIteration": true,
3029
"isolatedModules": true,
3130
"noUncheckedIndexedAccess": true,
3231

apps/coordinator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build:image": "docker build -f Containerfile . -t coordinator",
1111
"dev": "tsx --no-warnings=ExperimentalWarning --require dotenv/config --watch src/index.ts",
1212
"start": "tsx src/index.ts",
13-
"typecheck": "tsc --noEmit"
13+
"typecheck": "tsgo --noEmit"
1414
},
1515
"keywords": [],
1616
"author": "",

apps/docker-provider/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build:image": "docker build -f Containerfile . -t docker-provider",
1111
"dev": "tsx --no-warnings=ExperimentalWarning --require dotenv/config --watch src/index.ts",
1212
"start": "tsx src/index.ts",
13-
"typecheck": "tsc --noEmit"
13+
"typecheck": "tsgo --noEmit"
1414
},
1515
"keywords": [],
1616
"author": "",

apps/kubernetes-provider/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build:image": "docker build -f Containerfile . -t kubernetes-provider",
1111
"dev": "tsx --no-warnings=ExperimentalWarning --require dotenv/config --watch src/index.ts",
1212
"start": "tsx src/index.ts",
13-
"typecheck": "tsc --noEmit"
13+
"typecheck": "tsgo --noEmit"
1414
},
1515
"keywords": [],
1616
"author": "",

apps/supervisor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"start": "node dist/index.js",
1111
"test:run": "vitest --no-file-parallelism --run",
1212
"test:watch": "vitest --no-file-parallelism",
13-
"typecheck": "tsc --noEmit"
13+
"typecheck": "tsgo --noEmit"
1414
},
1515
"dependencies": {
1616
"@aws-sdk/client-ecr": "^3.839.0",

apps/webapp/app/routes/otel.v1.logs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export async function action({ request }: ActionFunctionArgs) {
1919

2020
const exportResponse = await otlpExporter.exportLogs(exportRequest);
2121

22-
return new Response(ExportLogsServiceResponse.encode(exportResponse).finish(), {
22+
return new Response(ExportLogsServiceResponse.encode(exportResponse).finish() as BodyInit, {
2323
status: 200,
2424
});
2525
} else {

apps/webapp/app/routes/otel.v1.metrics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export async function action({ request }: ActionFunctionArgs) {
2424

2525
const exportResponse = await otlpExporter.exportMetrics(exportRequest);
2626

27-
return new Response(ExportMetricsServiceResponse.encode(exportResponse).finish(), {
27+
return new Response(ExportMetricsServiceResponse.encode(exportResponse).finish() as BodyInit, {
2828
status: 200,
2929
});
3030
} else {

apps/webapp/app/routes/otel.v1.traces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export async function action({ request }: ActionFunctionArgs) {
1919

2020
const exportResponse = await otlpExporter.exportTraces(exportRequest);
2121

22-
return new Response(ExportTraceServiceResponse.encode(exportResponse).finish(), {
22+
return new Response(ExportTraceServiceResponse.encode(exportResponse).finish() as BodyInit, {
2323
status: 200,
2424
});
2525
} else {

apps/webapp/app/services/realtime/redisRealtimeStreams.server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,9 @@ export class RedisRealtimeStreams implements StreamIngestor, StreamResponder {
313313
let currentChunkIndex = startChunk;
314314

315315
try {
316-
const textStream = stream.pipeThrough(new TextDecoderStream());
316+
const textStream = stream.pipeThrough(
317+
new TextDecoderStream() as unknown as ReadableWritablePair<string, Uint8Array>
318+
);
317319
const reader = textStream.getReader();
318320

319321
while (true) {

apps/webapp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .",
1515
"start": "cross-env NODE_ENV=production node --max-old-space-size=8192 ./build/server.js",
1616
"start:local": "cross-env node --max-old-space-size=8192 ./build/server.js",
17-
"typecheck": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" tsc --noEmit -p ./tsconfig.check.json",
17+
"typecheck": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" tsgo --noEmit -p ./tsconfig.check.json",
1818
"db:seed": "tsx seed.mts",
1919
"db:seed:ai-spans": "tsx seed-ai-spans.mts",
2020
"upload:sourcemaps": "bash ./upload-sourcemaps.sh",

0 commit comments

Comments
 (0)