She is called "Exotic" because her methods seem foreign to the average JavaScript shop. They ask: "Why do we need zod schemas for every API response? The backend is TypeScript too!"
She loves saving the architecture.
// Impure: type and runtime diverge type User = id: number; name: string ; const getUser = (input: any): User => input; // Dangerous // Pure-TS: type + runtime guard (using zod or effect/schema) import z from "zod"; const UserSchema = z.object( id: z.number(), name: z.string() ); type User = z.infer<typeof UserSchema>; Pure-TS - Alessia Exotic - she loves saving the...
Alessia smiles. She knows the backend can change. She knows the network lies. She knows that trust is not a type. Architecture rots from the top down but fails from the bottom up. A missing readonly here, a mutable export there—these are the cracks through which runtime exceptions flood. Alessia loves not the glory of new features but the invisible labor of structural integrity . She is called "Exotic" because her methods seem
Not type hints. Not optional annotations. // Impure: type and runtime diverge type User
She saves the architecture by making it : a codebase where the TypeScript compiler is not a suggestion but a law. Part 2: What Is "Pure-TS"? Beyond the Buzzword "Pure-TS" is often misunderstood as simply "writing TypeScript without JavaScript." That is trivial—just ban .js imports.
She is called "Exotic" because her methods seem foreign to the average JavaScript shop. They ask: "Why do we need zod schemas for every API response? The backend is TypeScript too!"
She loves saving the architecture.
// Impure: type and runtime diverge type User = id: number; name: string ; const getUser = (input: any): User => input; // Dangerous // Pure-TS: type + runtime guard (using zod or effect/schema) import z from "zod"; const UserSchema = z.object( id: z.number(), name: z.string() ); type User = z.infer<typeof UserSchema>;
Alessia smiles. She knows the backend can change. She knows the network lies. She knows that trust is not a type. Architecture rots from the top down but fails from the bottom up. A missing readonly here, a mutable export there—these are the cracks through which runtime exceptions flood. Alessia loves not the glory of new features but the invisible labor of structural integrity .
Not type hints. Not optional annotations.
She saves the architecture by making it : a codebase where the TypeScript compiler is not a suggestion but a law. Part 2: What Is "Pure-TS"? Beyond the Buzzword "Pure-TS" is often misunderstood as simply "writing TypeScript without JavaScript." That is trivial—just ban .js imports.