Prepping editor.
This commit is contained in:
11
editor/electron/api/handlers.ts
Normal file
11
editor/electron/api/handlers.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import vnscene from './vnscene';
|
||||
|
||||
export const API_HANDLERS:{
|
||||
[key:string]:(...args:any)=>any
|
||||
} = {};
|
||||
|
||||
const addHandlers = (handlers:{[key:string]:(...args:any)=>any}) => {
|
||||
Object.keys(handlers).forEach(key => API_HANDLERS[key] = handlers[key]);
|
||||
}
|
||||
|
||||
addHandlers(vnscene);
|
Reference in New Issue
Block a user