Y
Hacker News
new
|
ask
|
show
|
jobs
by
crooked-v
3355 days ago
It's a bit wordy, but I think you can do something like:
function test ({param1, param2}: {readonly param1: string, readonly param2: number}) { return }