TypeScript is JavaScript with a static type system that is checked before the code runs and erased when it ships. EOXLABS writes Workers, SvelteKit apps and internal tooling in strict TypeScript, so one set of types runs from the database schema to the UI, and it validates every untrusted input at runtime because the types are gone by then.
TypeScript is the default language in the EOXLABS stack. Rust, Go and Swift appear only where a job calls for them.
Which compiler settings does EOXLABS turn on?
Since TypeScript 6.0, strict defaults to true, types defaults to an empty list and target floats to the current ECMAScript year. The strict flag turns on a family of checks: noImplicitAny, strictNullChecks, strictFunctionTypes, strictBindCallApply, strictPropertyInitialization, strictBuiltinIteratorReturn, noImplicitThis, useUnknownInCatchVariables and alwaysStrict. EOXLABS adds settings that strict leaves off:
noUncheckedIndexedAccessaddsundefinedto indexed reads, sorows[0]must be checked before use.exactOptionalPropertyTypesseparates "missing" from "set toundefined", which matters for partial updates.verbatimModuleSyntaxanderasableSyntaxOnlykeep every file runnable by tools that strip types without transforming them. That rules outenum, parameter properties and namespaces with runtime code.- An explicit
typeslist, such as the output ofwrangler typesfor a Worker, since nothing is included by default any more.
TypeScript 7.0, released on July 8, 2026, is a native port of the compiler written in Go. Microsoft reports typical speedups between 8x and 12x on full builds. Options deprecated in 6.0 are hard errors in 7.0, and 7.0 ships without a programmatic API; Microsoft expects a new one in 7.1. Tools that call the compiler's API have nothing in 7.0 to call yet.
How do types travel from the database to the UI?
The schema is the source. With Drizzle ORM, a table definition produces its row type through $inferSelect:
// src/lib/server/schema.ts
import { pgTable, uuid, text } from 'drizzle-orm/pg-core';
export const orders = pgTable('orders', {
id: uuid('id').primaryKey().defaultRandom(),
status: text('status', { enum: ['open', 'shipped', 'cancelled'] }).notNull(),
});
export type Order = typeof orders.$inferSelect;
// { id: string; status: 'open' | 'shipped' | 'cancelled' }
From there, wrangler types generates the Env interface for the Worker's bindings, and SvelteKit generates ./$types for every route, so the value a load function returns becomes the type of the page's data prop. Rename a column and the type check fails in the component that displays it, not in production. The SvelteKit page shows that chain inside a real route.
Why validate at the boundaries if everything is typed?
Types describe what the code expects, not what arrives. Node.js says it plainly in its documentation for running TypeScript, covered below: "no type checking is performed". Even inside the typed chain, Drizzle's column types page notes that a text enum only shapes the inferred type and "won't check runtime values".
EOXLABS therefore parses every value that crosses into the system: request bodies, form fields, webhooks, queue messages, environment variables, third-party API responses and model output in AI systems. Schemas are written with a library that implements Standard Schema, a shared interface that Zod (3.24.0+), Valibot (v1.0+) and ArkType (v2.0+) all support, so frameworks and tools accept them interchangeably:
import * as v from 'valibot';
const CancelOrder = v.object({
orderId: v.pipe(v.string(), v.uuid()),
reason: v.pipe(v.string(), v.maxLength(500)),
});
export async function cancelOrder(request: Request): Promise<Response> {
const result = v.safeParse(CancelOrder, await request.json().catch(() => null));
if (!result.success) return Response.json({ issues: result.issues }, { status: 400 });
const { orderId, reason } = result.output; // typed by the schema itself
// ...
return new Response(null, { status: 204 });
}
The schema is the only place the shape is written; the static type is inferred from it. The same rule runs through AXIOM, EOXLABS's AI data transformation product on the products page: typed schemas in, typed records out, validation at every stage. Data pipelines are built the same way.
Where does Node type stripping fit?
Node.js runs .ts files directly. Type stripping has been on by default since v23.6.0 and v22.18.0, and is marked stable from v25.2.0 and v24.12.0. It replaces type annotations with whitespace and nothing more:
- it does not type-check, and it ignores
tsconfig.json, sopathsaliases don't resolve; - imports need real file extensions (
./db.ts), and type-only imports need thetypekeyword; - it refuses TypeScript files under
node_modules, so shared internal packages still publish JavaScript.
EOXLABS uses it for migrations, seed scripts and small command-line tools, which removes a build step from code that runs a few times a day. Continuous integration still runs the compiler with noEmit, because stripping alone would let a type error reach main.
TypeScript, JavaScript with JSDoc, or Go?
| Strict TypeScript | JavaScript with JSDoc types | Go | |
|---|---|---|---|
| Type checking | Compiler, before deploy | Same checker, reading JSDoc annotations | Compiler, before build |
| On Cloudflare Workers | First-class | First-class | Only through WebAssembly |
| Types shared with the browser UI | Directly | Directly, with heavier syntax | No; needs a generated client |
| Best fit at EOXLABS | Workers, SvelteKit apps, tooling | Small scripts where a build step isn't wanted | Network daemons a Go team already owns |
When not to use TypeScript
- The hot path is CPU-bound. Parsing, hashing or compression over large inputs belongs in Rust compiled to WebAssembly, called from TypeScript.
- The UI is native Apple software. SwiftUI apps are written in Swift; TypeScript stops at the API they call.
- The service is a long-running daemon owned by a Go team. Rewriting working Go into TypeScript buys type sharing the service doesn't need.
- As the only defense against bad input. If a value comes from outside the process, no compiler setting makes it safe; only a runtime parse does.