I ran into an instance of this Typescript bug recently. Basically, Typescript lets you do this without compiler errors:
const arr = [1, 2, 3];
const x: { a: number[] } = { a: { ...arr } };
x.a.map(
            
     
            
    
        
            
                This is the third (or third-and-a-halfth) article in a series called "Hosting quickly". I want to launch Rust apps quickly and often, and I want to have stable, common infrastructure for
            
     
            
    
        
            
                * Hosting quickly 1 - Setting up Terraform, Github, and 1Password
 * Hosting quickly 2 - Dioxus to the web on Fly.io
We should make the backend serve some API that we can hit
            
     
            
    
        
            
                This is the second article in a series called "Hosting quickly". I want to launch Rust apps quickly and often, and I want to have stable, common infrastructure for all of
            
     
            
    
        
            
                If you read this blog or my digital garden you'll know I like working with state machines in the frontend. There's plenty of reasons for this, but the two