MCPcopy Index your code
hub / github.com/JavaScriptRegenerated/yieldparser / TimespanParser

Function TimespanParser

src/natural-dates.test.ts:77–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75 }
76
77 function* TimespanParser() {
78 yield ['from', 'at', ''];
79 yield whitespaceOptional;
80 const startTime = yield TimeOfDayParser;
81 yield whitespaceOptional;
82 const endTime = yield optional(TimespanSuffixParser);
83 return { startTime, endTime };
84 }
85
86 interface Result {
87 weekdays: Set<Weekday>;

Callers

nothing calls this directly

Calls 1

optionalFunction · 0.90

Tested by

no test coverage detected