MCPcopy
hub / github.com/coder/mux / parseGoalBudgetCents

Function parseGoalBudgetCents

src/browser/utils/slashCommands/registry.ts:452–458  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

450 * required a `$` prefix; that has been unified with the GoalTab editor.
451 */
452export function parseGoalBudgetCents(value: unknown): number | null {
453 if (typeof value !== "string") {
454 return null;
455 }
456 const parsed = parseGoalBudgetInputCents(value);
457 return typeof parsed === "number" ? parsed : null;
458}
459
460function parseGoalTurnCap(value: unknown): number | null {
461 if (typeof value !== "string" && typeof value !== "number") {

Callers 2

buildCoreSourcesFunction · 0.90
registry.tsFile · 0.85

Calls 1

Tested by

no test coverage detected