From f74333cef387472b932fc4125d05e96a820b3bd8 Mon Sep 17 00:00:00 2001 From: Asher Date: Mon, 26 Aug 2024 11:31:52 -0800 Subject: [PATCH] Run formatter Not sure why it keeps trying to indent the options though, in CI it wants it flat. Going to keep it flat for now until we figure it out. --- docs/guide.md | 1 + src/node/cli.ts | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/docs/guide.md b/docs/guide.md index 0d0c13140..5f55e9926 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -20,6 +20,7 @@ - [Proxying to a Vue app](#proxying-to-a-vue-app) - [Proxying to an Angular app](#proxying-to-an-angular-app) - [Proxying to a Svelte app](#proxying-to-a-svelte-app) + - [Prefixing `/absproxy/` with a path](#prefixing-absproxyport-with-a-path) diff --git a/src/node/cli.ts b/src/node/cli.ts index 36cb29e75..6320c2025 100644 --- a/src/node/cli.ts +++ b/src/node/cli.ts @@ -118,18 +118,18 @@ interface Option { type OptionType = T extends boolean ? "boolean" : T extends OptionalString - ? typeof OptionalString - : T extends LogLevel - ? typeof LogLevel - : T extends AuthType - ? typeof AuthType - : T extends number - ? "number" - : T extends string - ? "string" - : T extends string[] - ? "string[]" - : "unknown" + ? typeof OptionalString + : T extends LogLevel + ? typeof LogLevel + : T extends AuthType + ? typeof AuthType + : T extends number + ? "number" + : T extends string + ? "string" + : T extends string[] + ? "string[]" + : "unknown" export type Options = { [P in keyof T]: Option> @@ -282,7 +282,7 @@ export const options: Options> = { }, "abs-proxy-base-path": { type: "string", - description: "The base path to prefix all absproxy requests", + description: "The base path to prefix to all absproxy requests", }, }