// them through a typed cast at the call site.
function VirtualDate(this: unknown, ...args: unknown[]): unknown {
return new OriginalDate(clock.now).toString();
}
return new OriginalDate(clock.now);
}
return new (OriginalDate as new (...a: unknown[]) => Date)(...args);
// Static-property tagging. Use a typed `Record` view of the function
// rather than `any`. We skip non-writable own properties (`length`,