mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 21:03:29 +00:00
feat: send http
This commit is contained in:
committed by
Carlos Valente
parent
8b84963e17
commit
ab4dd300ca
@@ -105,5 +105,7 @@ export {
|
||||
isPlayableEvent,
|
||||
isOntimeCycle,
|
||||
isKeyOfType,
|
||||
isOSCOutput,
|
||||
isHTTPOutput,
|
||||
} from './utils/guards.js';
|
||||
export type { MaybeNumber, MaybeString } from './utils/utils.type.js';
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import type { AutomationOutput, HTTPOutput, OSCOutput } from '../definitions/core/Automation.type.js';
|
||||
import type { OntimeBlock, OntimeDelay, OntimeEvent, PlayableEvent } from '../definitions/core/OntimeEvent.type.js';
|
||||
import { SupportedEvent } from '../definitions/core/OntimeEvent.type.js';
|
||||
import type { OntimeRundownEntry } from '../definitions/core/Rundown.type.js';
|
||||
@@ -32,3 +33,11 @@ export function isOntimeCycle(maybeCycle: unknown): maybeCycle is TimerLifeCycle
|
||||
if (typeof maybeCycle !== 'string') return false;
|
||||
return Object.values(TimerLifeCycle).includes(maybeCycle as TimerLifeCycle);
|
||||
}
|
||||
|
||||
export function isOSCOutput(output: AutomationOutput): output is OSCOutput {
|
||||
return output.type === 'osc';
|
||||
}
|
||||
|
||||
export function isHTTPOutput(output: AutomationOutput): output is HTTPOutput {
|
||||
return output.type === 'http';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user