12 lines
275 B
TypeScript
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);
|