ServiceCreator type

这是 ServiceKey.createCustom () 使用的回调。

export type ServiceCreator<T> = ((serviceScope: IServiceScope) => T) | ((serviceScope: ServiceScope) => T);