-
Notifications
You must be signed in to change notification settings - Fork 20
/
hyperdeck.ts
42 lines (36 loc) · 1.18 KB
/
hyperdeck.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run "yarn generate-schema-types" to regenerate this file.
*/
import { ActionExecutionResult } from ".."
export interface HyperdeckOptions {
host: string
port?: number
minRecordingTime?: number
/**
* If true, no warnings will be emitted when storage slots are empty.
*/
suppressEmptySlotWarnings?: boolean
}
export interface MappingHyperdeckTransport {
mappingType: MappingHyperdeckType.Transport
}
export enum MappingHyperdeckType {
Transport = 'transport',
}
export type SomeMappingHyperdeck = MappingHyperdeckTransport
export enum HyperdeckActions {
FormatDisks = 'formatDisks',
Resync = 'resync'
}
export interface HyperdeckActionExecutionResults {
formatDisks: () => void,
resync: () => void
}
export type HyperdeckActionExecutionPayload<A extends keyof HyperdeckActionExecutionResults> = Parameters<
HyperdeckActionExecutionResults[A]
>[0]
export type HyperdeckActionExecutionResult<A extends keyof HyperdeckActionExecutionResults> =
ActionExecutionResult<ReturnType<HyperdeckActionExecutionResults[A]>>