MCPcopy Create free account
hub / github.com/dailydotdev/apps / parserFor

Function parserFor

packages/shared/src/features/feedWidgets/config.ts:89–96  ·  view source on GitHub ↗
(
  kind: FeedWidgetKind,
)

Source from the content-addressed store, hash-verified

87 (widget.v ?? 1) > feedWidgetConfigVersion(widget.kind);
88
89const parserFor = (
90 kind: FeedWidgetKind,
91): ((config: unknown) => unknown) | undefined =>
92 (
93 feedWidgetConfigParsers as Partial<
94 Record<FeedWidgetKind, (config: unknown) => unknown>
95 >
96 )[kind];
97
98/**
99 * A stored config made safe for its widget: the known fields when it

Callers 2

parseFeedWidgetConfigFunction · 0.85
isValidFeedWidgetConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected