File tree Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ interface Tree {
36
36
[ k : string ] : AnyType ;
37
37
}
38
38
39
- type AnyType = PrimitiveType | ObjectType | ArrayType | SceneType | SceneItemType | SceneItemTransformType | OBSStatsType ;
39
+ type AnyType = PrimitiveType | ObjectType | OutputType | ArrayType | SceneType | SceneItemType | SceneItemTransformType | OBSStatsType ;
40
40
41
41
interface PrimitiveType {
42
42
type : 'string' | 'number' | 'boolean' ;
@@ -49,9 +49,15 @@ interface ObjectType {
49
49
optional : boolean ;
50
50
}
51
51
52
+ interface OutputType {
53
+ type : 'object' ;
54
+ properties : Tree ;
55
+ optional : boolean ;
56
+ }
57
+
52
58
interface ArrayType {
53
59
type : 'array' ;
54
- items : PrimitiveType | ObjectType | SceneType | SceneItemType | SceneItemTransformType ;
60
+ items : PrimitiveType | ObjectType | OutputType | SceneType | SceneItemType | SceneItemTransformType ;
55
61
optional : boolean ;
56
62
}
57
63
@@ -376,6 +382,16 @@ function resolveType(inType: string): AnyType {
376
382
} ,
377
383
optional : isOptional
378
384
} ;
385
+ case 'array<output>' :
386
+ return {
387
+ type : 'array' ,
388
+ items : {
389
+ type : 'object' ,
390
+ properties : { } ,
391
+ optional : true
392
+ } ,
393
+ optional : isOptional
394
+ } ;
379
395
case 'array<scene>' :
380
396
return {
381
397
type : 'array' ,
@@ -419,6 +435,12 @@ function resolveType(inType: string): AnyType {
419
435
properties : { } ,
420
436
optional : isOptional
421
437
} ;
438
+ case 'output' :
439
+ return {
440
+ type : 'object' ,
441
+ properties : { } ,
442
+ optional : isOptional
443
+ } ;
422
444
default :
423
445
throw new Error ( `Unknown type: ${ inType } ` ) ;
424
446
}
You can’t perform that action at this time.
0 commit comments