having vague thoughtfeels about how API object design in (plain, but also TS) JavaScript is generally "this one object actually represents multiple different shapes and types but we shove them all together and hope you change them in the right order"
vs when you make new types.
vs when you make new types.
And not just new types, but also newtypes, to track type flow even when the actual data an object happens to hold is identical.
And then there& #39;s much heavier composition through nesting.
Sorry, they& #39;re vague, but my brain has gotten very Rusty lately.
And then there& #39;s much heavier composition through nesting.
Sorry, they& #39;re vague, but my brain has gotten very Rusty lately.