TenantAtlas/apps/platform/.pnpm-store/v10/files/25/472b6552c9698fd8568cfc72e7650a538504d8c856d06a174e2914ad3a2b0cfc793c653e8cf513c9069e0439705c7892b280225eaec00f0aa53cc208378747
Ahmed Darrazi 9f74f7a658
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 51s
feat: compress governance operator outcomes
2026-04-19 14:15:11 +02:00

15 lines
437 B
Plaintext

import { TimestampProvider } from '../types';
interface DateTimestampProvider extends TimestampProvider {
delegate: TimestampProvider | undefined;
}
export const dateTimestampProvider: DateTimestampProvider = {
now() {
// Use the variable rather than `this` so that the function can be called
// without being bound to the provider.
return (dateTimestampProvider.delegate || Date).now();
},
delegate: undefined,
};