magmo / apps

Proof of concept applications that use the Force Move Game framework.
9 stars 5 forks source link

Introduce an InitializeArgs interface #635

Closed geoknee closed 5 years ago

geoknee commented 5 years ago

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.