mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 21:02:38 +00:00
Remove non-standard "type annotations"
Since we're not actually using Flow.
This commit is contained in:
14
lib/cli.js
14
lib/cli.js
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user