UNPKG

open-epsilon

Version:

empty-epsilon / open-sound-control bidirectional proxy

24 lines (23 loc) 835 B
import { EnumType, GameSchema, PrimitiveType } from "./ee-schema"; export declare type ProcessedSchema = { global: ProcessedContext; [k: string]: ProcessedContext; }; export declare type ProcessedType = ProcessedContext | Array<PrimitiveType>; export declare type ProcessedGetMethod = { methodName: string; arguments: Array<PrimitiveType | EnumType>; type: ProcessedType; }; export declare type ProcessedSetMethod = { methodName: string; arguments: Array<PrimitiveType | EnumType>; }; export declare type ProcessedResource = { get?: ProcessedGetMethod; set?: ProcessedSetMethod; }; export declare type ProcessedContext = { [k: string]: ProcessedResource; }; export declare function processApiSchema<S extends GameSchema>(generatedGameSchema: GameSchema): ProcessedSchema;