Skip to content

Commit

Permalink
input types: improvements to generic input types
Browse files Browse the repository at this point in the history
  • Loading branch information
jensstigaard committed Aug 22, 2024
1 parent c16a3b3 commit abee81d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/types/inputs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* NOTE! Should not be used!
*/
export type GenericInput = {
[key: string]: any
[key: string]: unknown
}

/**
Expand All @@ -14,6 +14,10 @@ export type BaseInput = {
number: number
type: InputType
title: string

/**
* Layers - when input are using (multi-)layers, i.e. as a multiview
*/
layers?: InputLayer[]
}

Expand Down Expand Up @@ -86,12 +90,12 @@ export type InputType = 'Audio' // Microphone or other live audio source
| 'Virtual'
| 'VirtualSet'
| 'VLC' // VLC stream
| string // Allow arbitary string value to allow non-listed input types
| string & {} // Allow arbitary string value to allow non-listed input types. {} to keep autocomplete

/**
* Input state
*/
export type InputState = 'Paused'
| 'Running'
| 'Completed'
| string // Allow arbitary string value to allow non-listed input state
| string & {} // Allow arbitary string value to allow non-listed input state. {} to keep autocomplete

0 comments on commit abee81d

Please sign in to comment.