File size: 294 Bytes
68d7816
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import { createDecorator, type ServiceIdentifier } from '#/_base/di/instantiation';

export interface IHostClock {
  readonly _serviceBrand: undefined;

  now(): Date;
  timeZone(): string;
}

export const IHostClock: ServiceIdentifier<IHostClock> =
  createDecorator<IHostClock>('hostClock');