MCPcopy Index your code
hub / github.com/coder/mux / parseOptionalBoolean

Function parseOptionalBoolean

src/node/config.ts:156–158  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

154 return undefined;
155}
156function parseOptionalBoolean(value: unknown): boolean | undefined {
157 return typeof value === "boolean" ? value : undefined;
158}
159
160function parseUpdateChannel(value: unknown): UpdateChannel | undefined {
161 if (value === "stable" || value === "nightly") {

Callers 4

loadConfigOrDefaultMethod · 0.85
saveConfigMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected