Remove non-standard "type annotations"

Since we're not actually using Flow.
This commit is contained in:
Nick Farina
2015-07-17 08:57:56 -07:00
parent 94ad9eddcb
commit bf5fc50fa6
8 changed files with 44 additions and 44 deletions

View File

@@ -42,7 +42,7 @@ export default function() {
function runServer(options) {
// get all installed providers
let providers:Array<Provider> = Provider.installed();
let providers = Provider.installed(); // array of Provider
// load and validate providers - check for valid package.json, etc.
try {
@@ -60,7 +60,7 @@ function listInstalledProviders(options) {
// Encapsulates configuring a provider via the command line.
class CliProviderSetup {
constructor(providerName: string, options:object) {
constructor(providerName, options) {
// if you didn't specify a provider, print help
if (!providerName) {
@@ -88,8 +88,8 @@ class CliProviderSetup {
console.log('');
// apply configuration values entered by the user
for (let key:string in result) {
let value:object = result[key];
for (let key in result) {
let value = result[key];
User.config.set(`${this.providerName}.${key}`, value);
}
@@ -128,11 +128,11 @@ class CliProviderSetup {
}
// builds a "schema" obejct for the prompt lib based on the provider's config spec
buildPromptSchema(): object {
buildPromptSchema() {
let properties = {};
for (let key:string in this.providerModule.config) {
let spec:object = this.providerModule.config[key];
for (let key in this.providerModule.config) {
let spec = this.providerModule.config[key];
// do we have a value for this config key currently?
let currentValue = User.config.get(`${this.providerName}.${key}`);