screepers / screeps-server-mockup

Private server package for unit tests
MIT License
56 stars 13 forks source link

Normalized screeps server initialization with partial options #14

Closed brisberg closed 4 years ago

brisberg commented 4 years ago

This simplifies the typings of specifying server options. We have a set of default server options which are applied if they are not supplied by the caller. Using a Partial<> Type for the constructor options lets the User only override the options they need to.

brisberg commented 4 years ago

PTAL, merge in the typescript branch, so this should be ready to go.