Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(typescript): add tsgo (TS 7) as a shadow type-checker (#59070)

Georges-Antoine Assi68c67b1b66eb
diff --git a/.github/workflows/ci-dev-setup.yml b/.github/workflows/ci-dev-setup.yml
index 8d845bccccc0..45c967dfa99c 100644
--- a/.github/workflows/ci-dev-setup.yml
+++ b/.github/workflows/ci-dev-setup.yml
@@ -50,6 +50,7 @@ jobs:
echo "--- Node packages ---"
pnpm --filter=@posthog/frontend exec tsc --version
+ pnpm --filter=@posthog/frontend exec tsgo --version
'
- name: Check lockfile consistency
diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.yml
index ee1a34cbd1d7..92a20d7c03cb 100644
--- a/.github/workflows/ci-frontend.yml
+++ b/.github/workflows/ci-frontend.yml
@@ -343,6 +343,10 @@ jobs:
env:
NODE_OPTIONS: --max-old-space-size=16384
+ - name: Run tsgo (shadow, non-blocking)
+ run: pnpm --filter=@posthog/frontend typescript:check:tsgo
+ continue-on-error: true
+
- name: Check if schema.json and validators.js are up to date
run: pnpm --filter=@posthog/frontend schema:build:json && git diff --exit-code
diff --git a/.github/workflows/ci-mcp.yml b/.github/workflows/ci-mcp.yml
index a05e295c59a9..391141d6a787 100644
--- a/.github/workflows/ci-mcp.yml
+++ b/.github/workflows/ci-mcp.yml
@@ -127,6 +127,10 @@ jobs:
- name: Type check
run: cd services/mcp && pnpm typecheck
+ - name: Type check (tsgo, shadow, non-blocking)
+ run: cd services/mcp && pnpm typecheck:tsgo
+ continue-on-error: true
+
- name: Check MCP schema is up to date
run: |
./bin/hogli build:schema-mcp
diff --git a/.github/workflows/ci-oauth-proxy.yml b/.github/workflows/ci-oauth-proxy.yml
index 2e841b360b9c..f3a3f1b7f3fc 100644
--- a/.github/workflows/ci-oauth-proxy.yml
+++ b/.github/workflows/ci-oauth-proxy.yml
@@ -67,6 +67,10 @@ jobs:
- name: Type check
run: cd services/oauth-proxy && pnpm typecheck
+ - name: Type check (tsgo, shadow, non-blocking)
+ run: cd services/oauth-proxy && pnpm typecheck:tsgo
+ continue-on-error: true
+
- name: Run tests
run: cd services/oauth-proxy && pnpm test
diff --git a/common/hogvm/typescript/package.json b/common/hogvm/typescript/package.json
index dc2eae114bb5..30cd85a27ac8 100644
--- a/common/hogvm/typescript/package.json
+++ b/common/hogvm/typescript/package.json
@@ -26,6 +26,7 @@
"build:cli": "mkdir -p ./dist && cp ./src/cli.js ./dist/cli.js",
"compile:stl": "cd ../../.. && python3 -m common.hogvm.stl.compile",
"typecheck": "tsc -p tsconfig.build.json --noEmit",
+ "typecheck:tsgo": "tsgo -p tsconfig.build.json --noEmit",
"format:oxfmt": "oxfmt src",
"format:check": "oxfmt --check src",
"prepublishOnly": "pnpm build"
diff --git a/frontend/@posthog/lemon-ui/package.json b/frontend/@posthog/lemon-ui/package.json
index d307170c4e22..9e2c128448fd 100644
--- a/frontend/@posthog/lemon-ui/package.json
+++ b/frontend/@posthog/lemon-ui/package.json
@@ -11,7 +11,8 @@
"build:source": "echo \"Building source\" && node build.mjs",
"build:types": "echo \"Building types\" && tsup src/index.ts --dts-only",
"prepublishOnly": "pnpm build",
- "typecheck": "tsc --noEmit"
+ "typecheck": "tsc --noEmit",
+ "typecheck:tsgo": "tsgo --noEmit"
},
"dependencies": {
"kea": "^4.0.0-pre.3",
diff --git a/frontend/package.json b/frontend/package.json
index 12306c5d66e7..f9af8f3f0390 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -35,7 +35,9 @@
"test": "SHARD_IDX=${SHARD_INDEX:-1}; SHARD_TOTAL=${SHARD_COUNT:-1}; echo $SHARD_IDX/$SHARD_TOTAL; pnpm build:products && jest --testPathPattern='(frontend/|products/|common/)' --forceExit --shard=$SHARD_IDX/$SHARD_TOTAL",
"jest": "pnpm build:products && jest",
"typescript:check": "tsc --noEmit && echo \"No errors reported by tsc.\"",
+ "typescript:check:tsgo": "tsgo --noEmit && echo \"No errors reported by tsgo.\"",
"typescript:version": "tsc --version",
+ "typescript:version:tsgo": "tsgo --version",
"lint": "cd .. && oxlint --quiet",
"format": "cd .. && oxlint --fix --fix-suggestions --fix-dangerously --quiet && oxfmt \"./{products,frontend/src,docs}/**/*.{js,mjs,ts,tsx,json,yaml,yml,css,scss}\"",
"visualize-toolbar-bundle": "pnpm exec esbuild-visualizer --metadata ./toolbar-esbuild-meta.json --filename=toolbar-esbuild-bundle-visualization.html",
diff --git a/frontend/src/lib/components/AppMetrics/AppMetricSummary.tsx b/frontend/src/lib/components/AppMetrics/AppMetricSummary.tsx
index 4a80654b6462..4706c332dc0e 100644
--- a/frontend/src/lib/components/AppMetrics/AppMetricSummary.tsx
+++ b/frontend/src/lib/components/AppMetrics/AppMetricSummary.tsx
@@ -5,6 +5,7 @@ import { LemonLabel, LemonSkeleton, SpinnerOverlay } from '@posthog/lemon-ui'
import { formatPercentageDiff, humanFriendlyNumber } from 'lib/utils'
import { LineGraph } from '~/queries/nodes/DataVisualization/Components/Charts/LineGraph'
+import { AxisSeries } from '~/queries/nodes/DataVisualization/dataVisualizationLogic'
import { ChartDisplayType } from '~/types'
import { AppMetricsTimeSeriesResponse } from './appMetricsLogic'
@@ -90,20 +91,22 @@ export function AppMetricSummary({
},
data: timeSeries.labels,
}}
- yData={timeSeries.series.map((x) => ({
- column: {
- name: x.name,
- type: { name: 'INTEGER', isNumerical: true },
- label: x.name,
- dataIndex: 0,
- },
- data: x.values,
- settings: {
- display: {
- color: total === 0 ? colorIfZero : color,
+ yData={timeSeries.series.map(
+ (x): AxisSeries<number | null> => ({
+ column: {
+ name: x.name,
+ type: { name: 'INTEGER', isNumerical: true },
+ label: x.name,
+ dataIndex: 0,
},
- },
- }))}
+ data: x.values,
+ settings: {
+ display: {
+ color: total === 0 ? colorIfZero : color,
+ },
+ },
+ })
+ )}
visualizationType={ChartDisplayType.ActionsLineGraph}
chartSettings={{
showLegend: false,
diff --git a/frontend/src/lib/components/AppMetrics/AppMetricsTrends.tsx b/frontend/src/lib/components/AppMetrics/AppMetricsTrends.tsx
index 1e7f5b6c61b8..c34ad6b35d72 100644
--- a/frontend/src/lib/components/AppMetrics/AppMetricsTrends.tsx
+++ b/frontend/src/lib/components/AppMetrics/AppMetricsTrends.tsx
@@ -1,6 +1,7 @@
import { SpinnerOverlay } from '@posthog/lemon-ui'
import { LineGraph } from '~/queries/nodes/DataVisualization/Components/Charts/LineGraph'
+import { AxisSeries } from '~/queries/nodes/DataVisualization/dataVisualizationLogic'
import { ChartDisplayType } from '~/types'
import { AppMetricsTimeSeriesResponse } from './appMetricsLogic'
@@ -36,7 +37,7 @@ export function AppMetricsTrends({
},
data: appMetricsTrends.labels,
}}
- yData={appMetricsTrends.series.map((x) => {
+ yData={appMetricsTrends.series.map((x): AxisSeries<number | null> => {
const label = metricLabels?.[x.name] ?? x.name
return {
column: {
diff --git a/nodejs/package.json b/nodejs/package.json
index 8a83ab39cb4d..dea50f9a0c48 100644
--- a/nodejs/package.json
+++ b/nodejs/package.json
@@ -21,6 +21,7 @@
"typescript:compile": "tsc -b && tsc-alias",
"typescript:compile-cleanup": "[ -d dist/src ] && mv dist/src/* dist/ || true",
"typescript:check": "tsc --noEmit -p .",
+ "typescript:check:tsgo": "tsgo --noEmit -p .",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"format": "prettier --write .",
diff --git a/package.json b/package.json
index 8f3a381f25bc..e820ddeb48ec 100644
--- a/package.json
+++ b/package.json
@@ -64,6 +64,7 @@
"@parcel/packager-ts": "catalog:",
"@parcel/transformer-typescript-types": "catalog:",
"@types/uuid": "^10.0.0",
+ "@typescript/native-preview": "7.0.0-dev.20260421.2",
"markdownlint-cli2": "^0.18.1",
"oxfmt": "catalog:",
"oxlint": "^1.8.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a7ada2203826..49f7d9bd0a6b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -154,6 +154,9 @@ importers:
'@types/uuid':
specifier: ^10.0.0
version: 10.0.0
+ '@typescript/native-preview':
+ specifier: 7.0.0-dev.20260421.2
+ version: 7.0.0-dev.20260421.2
markdownlint-cli2:
specifier: ^0.18.1
version: 0.18.1
@@ -12785,6 +12788,45 @@ packages:
resolution: {integrity: sha512-f1WO2Lx8a9t8DARmcWAUPJbu0G20bJlj8L4z72K00TMeJAoyLr/tHhI/pzYBLrR4dXWkcxO1cWYZEOX8DKHTqA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-fHv1r3ZmVo6zxuAIFmuX3w9QxbcauoG0SsWhmDwm6VmRubLlOJIcmTtlmV3JAb9oOnq8LuzZljzT7Q39fSMQDw==}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-KWTR6xbW9t+JS7D5DQIzo75pqVXVWUxF9PMv/+S6xsnOjCVd6g0ixHcFpFMJMKSUQpGPr8Z5f7b8ks6LHW01jg==}
+ cpu: [x64]
+ os: [darwin]
+
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-VLMEuml3BhUb+jaL0TXQ4xvVODxJF+RhkI+tBWvlynsJI4khTXEiwWh+wPOJrsfBRYFRMXEu28Odl/HXkYze8w==}
+ cpu: [arm64]
+ os: [linux]
+
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-BWLQO3nemLDSV5PoE5GPHe1dU9Dth77Kv8/cle9Ujcp4LhPo0KincdPqFH/qKeU/xvW25mgFueflZ1nc4rKuww==}
+ cpu: [arm]
+ os: [linux]
+
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-qUrJWTB5/wv4wnRG0TRXElAxc2kykNiRNyEIEqBbLmzDlrcvAW7RRy8MXoY1ZyTiKGMu14itZ3x9oW6+blFpRw==}
+ cpu: [x64]
+ os: [linux]
+
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-Rc6NsWlZmCs5YUKVzKgwoBOoRUGsPzct4BDMRX0csD1devLBBc4AbUXWKsJRbpwIAnqMO1ld4sNHEb+wXgfNHQ==}
+ cpu: [arm64]
+ os: [win32]
+
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-GQv1+dya1t6EqF2Cpsb+xoozovdX10JUSf6Kl/8xNkTapzmlHd+uMr+8ku3jIASTxoRGn0Mklgjj3MDKrOTuLg==}
+ cpu: [x64]
+ os: [win32]
+
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-CmajHI25HpVWE9R1XFoxr+cphJPxoYD3eFioQtAvXYkMFKnLdICMS9pXre9Pybizb75ejRxjKD5/CVG055rEIg==}
+ hasBin: true
+
'@typescript/[email protected]':
resolution: {integrity: sha512-PJFXFS4ZJKiJ9Qiuix6Dz/OwEIqHD7Dme1UwZhTK11vR+5dqW2ACbdndWQexBzCx+CPuMe5WBYQWCsFyGlQLlQ==}
peerDependencies:
@@ -18848,10 +18890,6 @@ packages:
resolution: {integrity: sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==}
- resolution: {integrity: sha512-362NP+zlprccbEt/SkxKfRMHnNY85V74mVnpUpNyr3F35covl09Kec7/sEFLt3RA4oXmewtoaanoIf67SE5Y5g==}
- engines: {node: '>=10'}
-
resolution: {integrity: sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==}
engines: {node: '>=10'}
@@ -29142,7 +29180,7 @@ snapshots:
ignore: 5.2.4
import-fresh: 3.3.0
js-yaml: 4.1.1
- minimatch: 3.1.2
+ minimatch: 3.1.5
strip-json-comments: 3.1.1
transitivePeerDependencies:
- supports-color
@@ -29285,7 +29323,7 @@ snapshots:
dependencies:
'@humanwhocodes/object-schema': 2.0.3
debug: 4.4.3
- minimatch: 3.1.2
+ minimatch: 3.1.5
transitivePeerDependencies:
- supports-color
@@ -32434,7 +32472,7 @@ snapshots:
extract-zip: 2.0.1
progress: 2.0.3
proxy-agent: 6.5.0
- semver: 7.7.4
+ semver: 7.8.0
tar-fs: 3.1.2
yargs: 17.7.2
transitivePeerDependencies:
@@ -36984,7 +37022,7 @@ snapshots:
graphemer: 1.4.0
ignore: 5.2.4
natural-compare-lite: 1.4.0
- semver: 7.7.4
+ semver: 7.8.0
tsutils: 3.21.0([email protected])
optionalDependencies:
typescript: 6.0.3
@@ -37104,7 +37142,7 @@ snapshots:
'@typescript-eslint/visitor-keys': 8.58.2
debug: 4.4.3
minimatch: 10.2.5
- semver: 7.7.4
+ semver: 7.8.0
tinyglobby: 0.2.15
ts-api-utils: 2.5.0([email protected])
typescript: 6.0.3
@@ -37147,6 +37185,37 @@ snapshots:
'@typescript-eslint/types': 8.58.2
eslint-visitor-keys: 5.0.1
+ '@typescript/[email protected]':
+ optional: true
+
+ '@typescript/[email protected]':
+ optional: true
+
+ '@typescript/[email protected]':
+ optional: true
+
+ '@typescript/[email protected]':
+ optional: true
+
+ '@typescript/[email protected]':
+ optional: true
+
+ '@typescript/[email protected]':
+ optional: true
+
+ '@typescript/[email protected]':
+ optional: true
+
+ '@typescript/[email protected]':
+ optionalDependencies:
+ '@typescript/native-preview-darwin-arm64': 7.0.0-dev.20260421.2
+ '@typescript/native-preview-darwin-x64': 7.0.0-dev.20260421.2
+ '@typescript/native-preview-linux-arm': 7.0.0-dev.20260421.2
+ '@typescript/native-preview-linux-arm64': 7.0.0-dev.20260421.2
+ '@typescript/native-preview-linux-x64': 7.0.0-dev.20260421.2
+ '@typescript/native-preview-win32-arm64': 7.0.0-dev.20260421.2
+ '@typescript/native-preview-win32-x64': 7.0.0-dev.20260421.2
+
dependencies:
debug: 4.4.3
@@ -40691,7 +40760,7 @@ snapshots:
estraverse: 5.3.0
hasown: 2.0.2
jsx-ast-utils: 3.3.5
- minimatch: 3.1.2
+ minimatch: 3.1.5
object.entries: 1.1.9
object.fromentries: 2.0.8
object.values: 1.2.1
@@ -41345,7 +41414,7 @@ snapshots:
deepmerge: 4.3.1
fs-extra: 10.1.0
memfs: 3.5.3
- minimatch: 3.1.2
+ minimatch: 3.1.5
node-abort-controller: 3.1.1
schema-utils: 3.3.0
semver: 7.8.0
@@ -41669,7 +41738,7 @@ snapshots:
fs.realpath: 1.0.0
inflight: 1.0.6
inherits: 2.0.4
- minimatch: 3.1.2
+ minimatch: 3.1.5
once: 1.4.0
path-is-absolute: 1.0.1
@@ -41678,7 +41747,7 @@ snapshots:
fs.realpath: 1.0.0
inflight: 1.0.6
inherits: 2.0.4
- minimatch: 5.1.1
+ minimatch: 5.1.9
once: 1.4.0
@@ -45490,10 +45559,6 @@ snapshots:
dependencies:
brace-expansion: 1.1.14
- dependencies:
- brace-expansion: 2.1.0
-
dependencies:
brace-expansion: 2.1.0
@@ -45854,7 +45919,7 @@ snapshots:
make-fetch-happen: 14.0.3
nopt: 8.1.0
proc-log: 5.0.0
- semver: 7.7.4
+ semver: 7.8.0
tar: 7.5.2
tinyglobby: 0.2.16
which: 5.0.0
@@ -50382,7 +50447,7 @@ snapshots:
json5: 2.2.3
lodash.memoize: 4.1.2
make-error: 1.3.6
- semver: 7.7.4
+ semver: 7.8.0
typescript: 6.0.3
yargs-parser: 20.2.9
optionalDependencies:
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 31ef039bab16..1954b677301f 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -40,7 +40,7 @@ catalog:
# Build tools
'@parcel/packager-ts': 2.13.3
'@parcel/transformer-typescript-types': 2.13.3
- typescript: 5.9.3
+ typescript: 6.0.3
oxfmt: ^0.35.0
# Testing
jest: ^29.7.0
diff --git a/products/managed_migrations/frontend/ManagedMigration.tsx b/products/managed_migrations/frontend/ManagedMigration.tsx
index 75b5a0786636..5e8bc04d932e 100644
--- a/products/managed_migrations/frontend/ManagedMigration.tsx
+++ b/products/managed_migrations/frontend/ManagedMigration.tsx
@@ -22,7 +22,7 @@ import { SceneContent } from '~/layout/scenes/components/SceneContent'
import { SceneTitleSection } from '~/layout/scenes/components/SceneTitleSection'
import { type ManagedMigrationForm, managedMigrationLogic } from './managedMigrationLogic'
-import { type ManagedMigration } from './types'
+import { type ManagedMigration as ManagedMigrationData } from './types'
const STATUS_COLORS = {
running: 'primary',
@@ -261,7 +261,9 @@ export function ManagedMigrations(): JSX.Element {
const { managedMigrationId, migrations, migrationsLoading } = useValues(managedMigrationLogic)
const { pauseMigration, resumeMigration } = useActions(managedMigrationLogic)
- const calculateProgress = (migration: ManagedMigration): { progress: number; completed: number; total: number } => {
+ const calculateProgress = (
+ migration: ManagedMigrationData
+ ): { progress: number; completed: number; total: number } => {
if (migration.state?.parts && Array.isArray(migration.state.parts)) {
const parts = migration.state.parts
const totalParts = parts.length
@@ -311,7 +313,7 @@ export function ManagedMigrations(): JSX.Element {
{
title: 'Source',
dataIndex: 'source_type',
- render: (_: any, migration: ManagedMigration) => {
+ render: (_: any, migration: ManagedMigrationData) => {
let sourceType: string = migration.source_type
if (migration.source_type === 'date_range_export') {
sourceType = migration.content_type
@@ -356,7 +358,7 @@ export function ManagedMigrations(): JSX.Element {
{
title: 'Content Type',
dataIndex: 'content_type',
- render: (_: any, migration: ManagedMigration) => {
+ render: (_: any, migration: ManagedMigrationData) => {
const contentTypeConfig = {
captured: {
icon: '/static/icons/favicon.ico?v=2023-07-07',
@@ -389,14 +391,14 @@ export function ManagedMigrations(): JSX.Element {
{
title: 'Status',
dataIndex: 'display_status',
- render: (_: any, migration: ManagedMigration) => (
+ render: (_: any, migration: ManagedMigrationData) => (
<StatusTag status={migration.display_status} />
),
},
{
title: 'Progress',
key: 'progress',
- render: (_: any, migration: ManagedMigration) => {
+ render: (_: any, migration: ManagedMigrationData) => {
const { progress, completed, total } = calculateProgress(migration)
return (
<div className="flex flex-col gap-1">
@@ -422,7 +424,7 @@ export function ManagedMigrations(): JSX.Element {
{
title: 'Created by',
dataIndex: 'created_by',
- render: function Render(_: any, migration: ManagedMigration) {
+ render: function Render(_: any, migration: ManagedMigrationData) {
return (
<div className="flex flex-row items-center flex-nowrap">
{migration.created_by && (
@@ -450,12 +452,12 @@ export function ManagedMigrations(): JSX.Element {
{
title: 'Status Message',
dataIndex: 'status_message',
- render: (_: any, migration: ManagedMigration) => migration.status_message || '-',
+ render: (_: any, migration: ManagedMigrationData) => migration.status_message || '-',
},
{
title: 'Actions',
key: 'actions',
- render: (_: any, migration: ManagedMigration) => {
+ render: (_: any, migration: ManagedMigrationData) => {
if (migration.display_status === 'running') {
return (
<LemonButton
diff --git a/products/visual_review/cli/package.json b/products/visual_review/cli/package.json
index 7ea2d41594ad..e3710c5c6210 100644
--- a/products/visual_review/cli/package.json
+++ b/products/visual_review/cli/package.json
@@ -9,7 +9,8 @@
"scripts": {
"build": "tsc",
"dev": "tsx src/index.ts",
- "typecheck": "tsc --noEmit"
+ "typecheck": "tsc --noEmit",
+ "typecheck:tsgo": "tsgo --noEmit"
},
"dependencies": {
"@napi-rs/blake-hash": "^1.3.6",
diff --git a/products/workflows/frontend/Workflows/hogflows/panel/HogFlowEditorPanelMetrics.tsx b/products/workflows/frontend/Workflows/hogflows/panel/HogFlowEditorPanelMetrics.tsx
index 5c78bf2d3e6a..ae54cf938066 100644
--- a/products/workflows/frontend/Workflows/hogflows/panel/HogFlowEditorPanelMetrics.tsx
+++ b/products/workflows/frontend/Workflows/hogflows/panel/HogFlowEditorPanelMetrics.tsx
@@ -9,6 +9,7 @@ import { IconOpenInApp } from 'lib/lemon-ui/icons'
import { urls } from 'scenes/urls'
import { LineGraph } from '~/queries/nodes/DataVisualization/Components/Charts/LineGraph'
+import { AxisSeries } from '~/queries/nodes/DataVisualization/dataVisualizationLogic'
import { ChartDisplayType } from '~/types'
import { EXIT_NODE_ID, TRIGGER_NODE_ID } from '../../workflowLogic'
@@ -120,7 +121,7 @@ export function HogFlowEditorPanelMetrics(): JSX.Element | null {
},
data: appMetricsTrends.labels,
}}
- yData={appMetricsTrends.series.map((x) => {
+ yData={appMetricsTrends.series.map((x): AxisSeries<number | null> => {
const colorSource = isEmailAction ? WORKFLOW_EMAIL_METRICS : WORKFLOW_METRICS_INFO
return {
column: {
diff --git a/rust/cyclotron-node/package.json b/rust/cyclotron-node/package.json
index adb461b12e64..1d513d8bb215 100644
--- a/rust/cyclotron-node/package.json
+++ b/rust/cyclotron-node/package.json
@@ -15,6 +15,7 @@
"build:cross": "cross build --message-format=json > cross.log",
"build:typescript": "tsc",
"typecheck": "tsc --noEmit",
+ "typecheck:tsgo": "tsgo --noEmit",
"clean": "rm -rf index.node",
"package": "NODE_ENV=development pnpm --filter=@posthog/cyclotron run build"
},
diff --git a/services/mcp/package.json b/services/mcp/package.json
index 321a2709bf0e..50c8cf6c9232 100644
--- a/services/mcp/package.json
+++ b/services/mcp/package.json
@@ -31,6 +31,7 @@
"test:perf": "vitest run --config vitest.perf.config.mts",
"test:watch": "vitest watch",
"typecheck": "tsc --noEmit",
+ "typecheck:tsgo": "tsgo --noEmit",
"generate-mcp-types": "node scripts/generate-mcp-types.mjs",
"generate-orval-schemas": "node scripts/generate-orval-schemas.mjs",
"generate-tools": "tsx scripts/generate-tools.ts",
diff --git a/services/oauth-proxy/package.json b/services/oauth-proxy/package.json
index c807ddc83908..da3b2f48c1e1 100644
--- a/services/oauth-proxy/package.json
+++ b/services/oauth-proxy/package.json
@@ -17,7 +17,8 @@
"cf-typegen": "wrangler types",
"test": "vitest",
"test:watch": "vitest watch",
- "typecheck": "tsc --noEmit"
+ "typecheck": "tsc --noEmit",
+ "typecheck:tsgo": "tsgo --noEmit"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20260120.0",