From 7741f0900793166d4a819672b31e9b9b2c794222 Mon Sep 17 00:00:00 2001 From: Victor Fan Date: Thu, 15 Sep 2022 11:53:49 -0700 Subject: [PATCH 1/2] we're not using listParams right now, so no reason to have them show in autocomplete --- src/params/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/params/index.ts b/src/params/index.ts index 948b77737..097294937 100644 --- a/src/params/index.ts +++ b/src/params/index.ts @@ -134,6 +134,7 @@ export function defineFloat(name: string, options: ParamOptions = {}): F /** * Declare a list param (array of strings). * + * @hiddden * @param name The name of the environment variable to use to load the param. * @param options Configuration options for the param. * @returns A Param with a `string[]` return type for `.value`. From beb1be8968f23b3e77b1743f954c5c2eb5c65c90 Mon Sep 17 00:00:00 2001 From: Victor Fan Date: Fri, 16 Sep 2022 13:56:12 -0700 Subject: [PATCH 2/2] just get rid of defineList() for now --- src/params/index.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/params/index.ts b/src/params/index.ts index 097294937..19064e317 100644 --- a/src/params/index.ts +++ b/src/params/index.ts @@ -29,7 +29,6 @@ import { BooleanParam, FloatParam, IntParam, - ListParam, Param, ParamOptions, StringParam, @@ -130,17 +129,3 @@ export function defineFloat(name: string, options: ParamOptions = {}): F registerParam(param); return param; } - -/** - * Declare a list param (array of strings). - * - * @hiddden - * @param name The name of the environment variable to use to load the param. - * @param options Configuration options for the param. - * @returns A Param with a `string[]` return type for `.value`. - */ -export function defineList(name: string, options: ParamOptions = {}): ListParam { - const param = new ListParam(name, options); - registerParam(param); - return param; -}