But that’s not what TypeScript does. The joke in the meme doesn’t really even make sense.
A better analogy would be you have a basket that’s explicitly labeled “Fruit” and TypeScript complains if you try to put laundry detergent in it because you said it’s supposed to be a basket of fruit.
This meme was clearly made by someone who doesn’t use or understand TypeScript.
I was tilling my garden a month or two ago and got to one end, turned around, and casually strolling right through the middle of the plot, literally 10 feet in front of me and a very loud tiller, was a young buck. Completely unafraid of me or the tiller.
On another day, I was using a chainsaw to cut down some buckthorn and that same buck was within 5 feet of me eating the leaves on the trees I just cut down. Again completely unafraid.
I put up a small net around the perimeter a few days before I put my plants in and they knocked it over, tore the net, and bent the poles. There wasn’t even anything in the garden! And to top it all off, there were several fresh piles of poop.
So I put in 8 ft. T poles every 4 feet around the perimeter, doubled up the net, secured it at the top and the bottom, and they haven’t gotten in yet (although I watched one of them biting at it). Unfortunately the neighbors are feeding these deer, so they have almost no fear of people.