Skip to content

Commit

Permalink
Run formatter
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
code-asher committed Aug 26, 2024
1 parent f8a4da7 commit f74333c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/<port>` with a path](#prefixing-absproxyport-with-a-path)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->
<!-- prettier-ignore-end -->
Expand Down
26 changes: 13 additions & 13 deletions src/node/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,18 @@ interface Option<T> {
type OptionType<T> = 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<T> = {
[P in keyof T]: Option<OptionType<T[P]>>
Expand Down Expand Up @@ -282,7 +282,7 @@ export const options: Options<Required<UserProvidedArgs>> = {
},
"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",
},
}

Expand Down

0 comments on commit f74333c

Please sign in to comment.