MCPcopy Create free account
hub / github.com/denoland/std / assertIsDate

Function assertIsDate

fs/copy.ts:38–42  ·  view source on GitHub ↗
(date: Date | null, name: string)

Source from the content-addressed store, hash-verified

36}
37
38function assertIsDate(date: Date | null, name: string): asserts date is Date {
39 if (date === null) {
40 throw new Error(`${name} is unavailable`);
41 }
42}
43
44async function ensureValidCopy(
45 src: string | URL,

Callers 6

copyFileFunction · 0.85
copyFileSyncFunction · 0.85
copySymLinkFunction · 0.85
copySymlinkSyncFunction · 0.85
copyDirFunction · 0.85
copyDirSyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected