Hey #typescript people, is there a way to not declare a variable here and still specify the argument type on the call site?
what I have:
function foo(arg: Bar) { ... };
const arg : Bar = { ... };
foo(arg);
what I want:
foo({ ... } : Bar), // but that's not the syntax...
(note: that's typically a question LLM's are good at but I chose to value human interaction and not AI slop)