packager: remove validateOpts for Server class

Summary: Remove the validateOpts() that prevents full Flow typing. In turn, having full Flow typing will allow us to remove 'defaults' across the codebase, that are source of inconsistencies.

Reviewed By: davidaurelio, cpojer

Differential Revision: D4377823

fbshipit-source-id: 8bb0a6b5069de64a9bb9d63892cd08854da91777
This commit is contained in:
Jean Lauliac
2017-01-06 06:02:39 -08:00
committed by Facebook Github Bot
parent 207776107d
commit 446995306a
3 changed files with 59 additions and 74 deletions

View File

@@ -21,9 +21,10 @@ exports.createServer = createServer;
exports.Logger = Logger;
type Options = {
nonPersistent: boolean,
projectRoots: Array<string>,
reporter?: Reporter,
watch?: boolean,
nonPersistent: boolean,
};
exports.buildBundle = function(options: Options, bundleOptions: {}) {