feat: createNoopDaemonTransport 함수 추가 및 토너먼트 상태 처리 개선, 캘린더 핸들러 반환 타입 수정
This commit is contained in:
@@ -2,10 +2,10 @@ import type { TurnCalendarHandler } from './inMemoryWorld.js';
|
||||
|
||||
export const composeCalendarHandlers = (
|
||||
...handlers: Array<TurnCalendarHandler | null | undefined>
|
||||
): TurnCalendarHandler | null => {
|
||||
): TurnCalendarHandler | undefined => {
|
||||
const resolved = handlers.filter(Boolean) as TurnCalendarHandler[];
|
||||
if (resolved.length === 0) {
|
||||
return null;
|
||||
return undefined;
|
||||
}
|
||||
return {
|
||||
onMonthChanged: (context) => {
|
||||
|
||||
Reference in New Issue
Block a user