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

Function parseEventDetail

packages/webapp/components/IOSIconPicker.tsx:102–107  ·  view source on GitHub ↗
(rawDetail: unknown)

Source from the content-addressed store, hash-verified

100 }, [appIcons]);
101
102 const parseEventDetail = <T,>(rawDetail: unknown): T | null => {
103 if (typeof rawDetail === 'string') {
104 return parseOrDefault<T>(rawDetail) as T;
105 }
106 return rawDetail as T;
107 };
108
109 const handleGetIconResult = (detail: AppIconResult): void => {
110 const selected =

Callers 1

IOSIconPickerFunction · 0.85

Calls 1

parseOrDefaultFunction · 0.90

Tested by

no test coverage detected