(name?: string)
| 183 | |
| 184 | /** @internal */ |
| 185 | export const url = (name?: string): Config.Config<URL> => { |
| 186 | const config = primitive( |
| 187 | "an URL property", |
| 188 | (text) => |
| 189 | Either.try({ |
| 190 | try: () => new URL(text), |
| 191 | catch: (_) => configError.InvalidData([], `Expected an URL value but received ${formatUnknown(text)}`) |
| 192 | }) |
| 193 | ) |
| 194 | return name === undefined ? config : nested(config, name) |
| 195 | } |
| 196 | |
| 197 | /** @internal */ |
| 198 | export const port = (name?: string): Config.Config<number> => { |
nothing calls this directly
no test coverage detected