UNPKG

atom-nuclide

Version:

A unified developer experience for web and mobile development, built as a suite of features on top of Atom to provide hackability and the support of an active community.

33 lines (29 loc) 1.13 kB
Object.defineProperty(exports, '__esModule', { value: true }); /* * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the LICENSE file in * the root directory of this source tree. */ var ServerStatus = Object.freeze({ FAILED: 'failed', UNKNOWN: 'unknown', NOT_RUNNING: 'not running', NOT_INSTALLED: 'not installed', BUSY: 'busy', INIT: 'init', READY: 'ready' }); exports.ServerStatus = ServerStatus; // If we put this type on the definition, use sites will not see the individual properties in the // Server object for things like autocomplete. Worse, Flow will assume that *any* string key will // yield a valid ServerStatus result, so we won't get protection against typos. Adding this // assertion here ensures that all of the values are valid ServerStatus options, while yielding // better Flow behavior at use sites. ServerStatus; // Controls how long the Flow version will be cached before it is considered invalid. var VERSION_TIMEOUT_MS = 10 * 60 * 1000;exports.VERSION_TIMEOUT_MS = VERSION_TIMEOUT_MS; // 10 minutes in ms