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

Function parserFor

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

Source from the content-addressed store, hash-verified

93 (widget.v ?? 1) > feedWidgetConfigVersion(widget.kind);
94
95const parserFor = (
96 kind: FeedWidgetKind,
97): ((config: unknown) => unknown) | undefined =>
98 (
99 feedWidgetConfigParsers as Partial<
100 Record<FeedWidgetKind, (config: unknown) => unknown>
101 >
102 )[kind];
103
104/**
105 * 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