This draft PR sketches out an approach where we give an explicit name for the type of the intialize function parameter object.
Since the properties are often passed through to other functions also accepting objects with identically-named properties, the spread operator (i.e. ...args pattern) can be used to clean things up a bit.
So far only a couple of files touched. Will wait for feedback before rolling out to other files.
This draft PR sketches out an approach where we give an explicit name for the type of the intialize function parameter object.
Since the properties are often passed through to other functions also accepting objects with identically-named properties, the spread operator (i.e.
...args
pattern) can be used to clean things up a bit.So far only a couple of files touched. Will wait for feedback before rolling out to other files.