Whenever you're ready, walk me through how you'd approach this.
What is your approach to ensuring type safety across a full-stack TypeScript application with a Node.js or NestJS backend and a React frontend? Discuss how you would share API contracts, validate untrusted data at runtime, and prevent the frontend from drifting from backend behavior. Keep the answer focused on TypeScript, NestJS or Node.js, React, HTTP APIs, and practical development tooling.