Files
evse-backend/node_modules/worker-timers-broker/src/guards/call-notification.ts
2025-12-07 14:32:46 +00:00

6 lines
285 B
TypeScript
Executable File

import { ICallNotification, TWorkerMessage } from 'worker-timers-worker';
export const isCallNotification = (message: TWorkerMessage): message is ICallNotification => {
return (<ICallNotification>message).method !== undefined && (<ICallNotification>message).method === 'call';
};