SyntaxFix
Write A Post
Hire A Developer
Questions
If you're trying to add typings to a destructured object literal, for example in arguments to a function, the syntax is:
function foo({ bar, baz }: { bar: boolean, baz: string }) { // ... } foo({ bar: true, baz: 'lorem ipsum' });