4 ms·
have you tried typescript? the code above will make the function declaration become like this: function foo (): {data: MyCustomObject, message: string} so foo
by fendy3002 2y ago
have you tried typescript? the code above will make the function declaration become like this:
function foo (): {data: MyCustomObject, message: string}
so foo().data and foo().message is a valid object, while foo().bar will throw build error