It's a bit wordy, but I think you can do something like:
function test ({param1, param2}: {readonly param1: string, readonly param2: number}) {
return
}A codebase with no objects... I am guessing you mean no classes.
Seeing how functions are objects in JavaScript and all...
Re:TypeScript at Slack
by charlieflowers on Wednesday April 12, 2017 @08:34PM
(#14103028)
:rollseyes:
I'd like to hope many people are using TS in a functional style.
EDIT -- there was one object ... we had to create an exception class for some reason ... don't fully recall the details.