mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-09 17:33:55 +00:00
21 lines
417 B
TypeScript
21 lines
417 B
TypeScript
import { OSCOutput, HTTPOutput } from 'ontime-types';
|
|
|
|
export function makeOSCAction(action?: Partial<OSCOutput>): OSCOutput {
|
|
return {
|
|
type: 'osc',
|
|
targetIP: 'localhost',
|
|
targetPort: 3000,
|
|
address: 'test',
|
|
args: 'message',
|
|
...action,
|
|
};
|
|
}
|
|
|
|
export function makeHTTPAction(action?: Partial<HTTPOutput>): HTTPOutput {
|
|
return {
|
|
type: 'http',
|
|
url: 'localhost',
|
|
...action,
|
|
};
|
|
}
|