Dawn/editor/electron/api/handlers.ts
2023-06-25 20:58:47 -07:00

12 lines
275 B
TypeScript

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);