MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / parseDate

Function parseDate

packages/cli/src/auth/resolver.ts:119–123  ·  view source on GitHub ↗
(s: string | undefined)

Source from the content-addressed store, hash-verified

117}
118
119function parseDate(s: string | undefined): Date | undefined {
120 if (!s) return undefined;
121 const d = new Date(s);
122 return Number.isNaN(d.getTime()) ? undefined : d;
123}

Callers 1

pickOAuthFunction · 0.85

Calls 1

getTimeMethod · 0.65

Tested by

no test coverage detected