mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-11 09:09:34 +00:00
refactor: better type for api aux action (#1796)
This commit is contained in:
@@ -108,12 +108,15 @@ export type AddtimeResponse = {
|
|||||||
export type AuxtimerAction = {
|
export type AuxtimerAction = {
|
||||||
tag: 'auxtimer';
|
tag: 'auxtimer';
|
||||||
payload:
|
payload:
|
||||||
| { '1': SimplePlayback }
|
| {
|
||||||
| { '1': { duration?: number; addtime?: number; direction?: SimpleDirection } }
|
['1']?: SimplePlayback | { duration?: number; addtime?: number; direction?: SimpleDirection };
|
||||||
| { '2': SimplePlayback }
|
}
|
||||||
| { '2': { duration?: number; addtime?: number; direction?: SimpleDirection } }
|
| {
|
||||||
| { '3': SimplePlayback }
|
['2']?: SimplePlayback | { duration?: number; addtime?: number; direction?: SimpleDirection };
|
||||||
| { '3': { duration?: number; addtime?: number; direction?: SimpleDirection } };
|
}
|
||||||
|
| {
|
||||||
|
['3']?: SimplePlayback | { duration?: number; addtime?: number; direction?: SimpleDirection };
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type AuxtimerResponse = {
|
export type AuxtimerResponse = {
|
||||||
|
|||||||
Reference in New Issue
Block a user